Input: analog - always use ktime functions
authorGuenter Roeck <linux@roeck-us.net>
Wed, 8 Sep 2021 01:37:08 +0000 (18:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Sep 2021 06:39:47 +0000 (23:39 -0700)
commit0c5483a5778fa9910538453b5a9f1a6ed49e95ad
tree520a80403b97a3eeb4742bf3e7250774f8d7b990
parentab108678195ff70edf50025379a5de94b0bb26be
Input: analog - always use ktime functions

m68k, mips, s390, and sparc allmodconfig images fail to build with the
following error.

drivers/input/joystick/analog.c:160:2: error:
#warning Precise timer not defined for this architecture.

Remove architecture specific time handling code and always use ktime
functions to determine time deltas. Also remove the now useless use_ktime
kernel parameter.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20210907123734.21520-1-linux@roeck-us.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/analog.c