From 5b4926fe16dac2b776c277107ea7fd1ccb81bde6 Mon Sep 17 00:00:00 2001 From: Tom Knot Date: Thu, 8 Mar 2018 13:17:30 +0100 Subject: [PATCH] Updated version string and correct return value for unimplemented UART ioctl. --- modules/unipi/src/unipi_common.h | 2 +- modules/unipi/src/unipi_uart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/unipi/src/unipi_common.h b/modules/unipi/src/unipi_common.h index a1bd74f..1b27daa 100644 --- a/modules/unipi/src/unipi_common.h +++ b/modules/unipi/src/unipi_common.h @@ -48,7 +48,7 @@ ***************/ #define NEURONSPI_SCHED_REQUIRED 0 // Older kernels do not require sched/types to be specifically imported -#define NEURONSPI_MAJOR_VERSIONSTRING "Development Beta Version 0.02:12:02:2018" +#define NEURONSPI_MAJOR_VERSIONSTRING "Development Beta Version 0.03:08:03:2018" #define NEURONSPI_MAX_DEVS 3 #define NEURONSPI_MAX_UART 128 diff --git a/modules/unipi/src/unipi_uart.c b/modules/unipi/src/unipi_uart.c index 0955519..9376904 100644 --- a/modules/unipi/src/unipi_uart.c +++ b/modules/unipi/src/unipi_uart.c @@ -91,7 +91,7 @@ int neuronspi_uart_ioctl (struct uart_port *port, unsigned int ioctl_code, unsig return 1; } default: { - return 0; + return -ENOIOCTLCMD; } } } -- 2.34.1