]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - Poweroff XBOX360W on mode button long press
authorSantosh De Massari <s.demassari@gmail.com>
Thu, 18 Aug 2022 15:44:10 +0000 (17:44 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Sep 2022 18:45:27 +0000 (11:45 -0700)
commitad49ef7fd19008eb0f95e77336dd4d7793765912
tree0cb9164fd27eedc79bd2d9d7116bbed54fdbb362
parent4b00967ba0af4bef94cd092b1958b301862ec292
Input: xpad - Poweroff XBOX360W on mode button long press

Newer gamepads turn themselves off when the mode button is held down.
For XBOX360W gamepads we must do this in the driver.

Do not use BIT() macro for consistency within the file.

Signed-off-by: Santosh De Massari <s.demassari@gmail.com>
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Link: https://lore.kernel.org/r/20220818154411.510308-4-rojtberg@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c