summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r--io-module/mts-io.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 66ded86..154d120 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -135,9 +135,6 @@ static volatile int radio_reset_timer_is_start = 0;
static struct timer_list radio_reset_available_timer;
static volatile int radio_reset_available_timer_is_start = 0;
static time_t time_now_secs(void);
-static void radio_reset_available_timer_callback(struct timer_list *list);
-static void radio_reset_timer_callback(struct timer_list *list);
-
/* generic GPIO support */
#include "gpio.c"
@@ -283,7 +280,11 @@ static time_t time_now_secs(void)
return ts.tv_sec;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)
static void radio_reset_available_timer_callback( struct timer_list *data )
+#else
+static void radio_reset_available_timer_callback( unsigned long data )
+#endif
{
/* do your timer stuff here */
//log_info("radio_reset_available_timer_callback\n");
@@ -295,7 +296,11 @@ static void radio_reset_available_timer_callback( struct timer_list *data )
radio_reset_available_timer_is_start = 0;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)
static void radio_reset_timer_callback( struct timer_list *data )
+#else
+static void radio_reset_timer_callback( unsigned long data )
+#endif
{
/* do your timer stuff here */
//log_info("radio_reset_timer_callback\n");