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)
commit6c6212aa22978abb6eba8b9d9f0478ede14fc39b
tree9c1c647d874c1176df82e9877061d900a5787e5a
parent305180bc05019b60ff7aea0b1d68ddbac205ca1f
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