OSDN Git Service

tp_smapi/hdaps: use timer_setup() with kernel 4.15 and later
authorMauro Rossi <issor.oruam@gmail.com>
Wed, 29 Nov 2017 00:04:17 +0000 (01:04 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 23 Feb 2018 03:45:59 +0000 (11:45 +0800)
commite0854547dfc34d9ce1348eff447cc950b9f8a4cb
tree1be66c586fd25943a4af706ff5303f23d6e30728
parent27b64c8819e0d2152c3a2b63058336bdfa15bf2a
tp_smapi/hdaps: use timer_setup() with kernel 4.15 and later

Fixes the following building error happening with kernel 4.15:

  CC [M]  .../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.o
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c: In function 'hdaps_init':
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:782:2:
error: implicit declaration of function 'init_timer' [-Werror=implicit-function-declaration]
  init_timer(&hdaps_timer);
  ^
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:783:23:
warning: assignment from incompatible pointer type
  hdaps_timer.function = hdaps_mousedev_poll;
                       ^
cc1: some warnings being treated as errors
tp_smapi/hdaps.c