From: Tom Knot Date: Thu, 8 Mar 2018 12:17:30 +0000 (+0100) Subject: Updated version string and correct return value for unimplemented UART ioctl. X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=5b4926fe16dac2b776c277107ea7fd1ccb81bde6;p=graphit%2Funipi-kernel.git Updated version string and correct return value for unimplemented UART ioctl. --- 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; } } }