]> git.baikalelectronics.ru Git - kernel.git/commit
Input: iforce - assign BTN_DEAD only for specific devices
authorTim Schumacher <timschumi@gmx.de>
Fri, 27 Jul 2018 18:56:34 +0000 (11:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Jul 2018 18:59:04 +0000 (11:59 -0700)
commite9d3deed7b8c2e95e53908cffe73a31ff860c1a7
tree9c1c647d874c1176df82e9877061d900a5787e5a
parent3dcc08d899ad7a1202087c0f8c69ee977e190682
Input: iforce - assign BTN_DEAD only for specific devices

Move BTN_DEAD into the arrays with the specific button sets
instead of assigning it for every iforce device.

BTN_DEAD represents an optical sensor which detects if the
user is interacting with the device. On devices without that
optical sensor BTN_DEAD is repeatedly causing false inputs
on every status update of the joystick.

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-main.c