From 6fb0b6bed65b9df6e34e83c84878cf002394f676 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 3 Dec 2020 12:05:11 -0600 Subject: Fix supercap power-down feature for 4.19 kernel --- configure.ac | 2 +- io-module/mts_io_module.h | 2 +- io-module/mts_supercap.h | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6d04b9f..ed8ce66 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([mts-io], [4.5.0]) +AC_INIT([mts-io], [4.5.1]) AC_CONFIG_SRCDIR([util/mts_util_lora2_reset.c]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) diff --git a/io-module/mts_io_module.h b/io-module/mts_io_module.h index 301b853..0af9e06 100644 --- a/io-module/mts_io_module.h +++ b/io-module/mts_io_module.h @@ -5,7 +5,7 @@ * MTAC cards. */ -#define DRIVER_VERSION "v4.5.0" +#define DRIVER_VERSION "v4.5.1" #define DRIVER_AUTHOR "Multitech Systems" #define DRIVER_DESC "MTS-IO Controller" #define DRIVER_NAME "mts-io" diff --git a/io-module/mts_supercap.h b/io-module/mts_supercap.h index 871346d..bbe5529 100644 --- a/io-module/mts_supercap.h +++ b/io-module/mts_supercap.h @@ -3,6 +3,10 @@ #include #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) +#include +#endif #include "mts_io.h" #include "mts_io_module.h" -- cgit v1.2.3