Updated version string and correct return value for unimplemented UART ioctl.
authorTom Knot <tomasknot@gmail.com>
Thu, 8 Mar 2018 12:17:30 +0000 (13:17 +0100)
committerTom Knot <tomasknot@gmail.com>
Thu, 8 Mar 2018 12:17:30 +0000 (13:17 +0100)
modules/unipi/src/unipi_common.h
modules/unipi/src/unipi_uart.c

index a1bd74f1c09488cacabc127c54654db738eb363a..1b27daa0faae5cc8b489260e1c578742416bed69 100644 (file)
@@ -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
index 095551973e2cf7776b0e8f66eb2e668efa4a83f3..9376904dfabecb97c200116aee876815df6f4cfc 100644 (file)
@@ -91,7 +91,7 @@ int   neuronspi_uart_ioctl (struct uart_port *port, unsigned int ioctl_code, unsig
                return 1;
        }
        default: {
-               return 0;
+               return -ENOIOCTLCMD;
        }
        }
 }