]> www.infradead.org Git - linux.git/commit
Input: adxl34x - use input_set_capability()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Jun 2024 16:42:58 +0000 (09:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Jun 2024 18:17:44 +0000 (11:17 -0700)
commit8f275fc73dd6ff78c6041aa4c138410bf2c95ce6
treeaf5e80cdde9db371bd0a820941605c8852ed5588
parent6f7e4f81f738ac765318c54097a6235203073049
Input: adxl34x - use input_set_capability()

Switch to using input_set_capability() instead of using __set_bit() to
make clear what exactly kinds of events (EV_KEY, EV_REL) are being
declared.

Also drop redundant calls setting EV_ABS and ABS_X|Y|Z bits as that is
taken care by input_set_abs_params().

Link: https://lore.kernel.org/r/20240610164301.1048482-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/adxl34x.c