#if NEURONSPI_SCHED_REQUIRED > 0
#include <uapi/linux/sched/types.h>
#endif
-#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.33:2020:01:22"
+#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.37:2020:01:22"
#define NEURONSPI_MAX_DEVS 3
#define NEURONSPI_MAX_UART 16
{
struct spi_device* spi = neuronspi_s_dev[neuron_index];
struct neuronspi_driver_data *n_spi = spi_get_drvdata(spi);
+ int led_count = uled_count + sysled_count;
struct neuronspi_led_driver * led_driver = kzalloc(sizeof(struct neuronspi_led_driver) * led_count, GFP_ATOMIC);
int i, coil;
- int led_count = uled_count + sysled_count;
if (n_spi->features != NULL) {
coil = n_spi->features->di_count + n_spi->features->do_count + n_spi->features->ro_count;
for (i = 0; i < led_count; i++) {
if (i < uled_count) {
scnprintf(led_driver[i].name, sizeof(led_driver[i].name), "unipi:green:uled-x%x", i);
- { else {
+ } else {
scnprintf(led_driver[i].name, sizeof(led_driver[i].name), "unipi:green:sysled-x%x", i-uled_count);
}
// Initialise the rest of the structure
ch = *pbuf;
pbuf++;
- if (uart_handle_sysrq_char(port, ch))
+ if (uart_handle_sysrq_char(&port->port, ch))
continue;
uart_insert_char(&port->port, 0, 0, ch, flag);