OSDN Git Service

tp_smapi/hdaps: use timer_setup() with kernel 4.15 and later marshmallow-x86
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, 7 Dec 2018 08:47:54 +0000 (16:47 +0800)
commite07d8139c890f6cfb8b1eba0bf7a7f258c9e1d38
tree101f33263d0e2a1121c6d911aa334cf266a36ce8
parent6dd92c1433be9f75f2973748515ddc3ebc6a2bce
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