]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - restore LED state after device resume
authorCameron Gutman <aicommander@gmail.com>
Tue, 7 Feb 2017 01:03:03 +0000 (17:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Feb 2017 03:32:49 +0000 (19:32 -0800)
commitc03fdf9e81f4bd3d2e0f47d238f70b3fd4ae63f8
treed14a093d17958692a359f3f4dbff7bf7fd434b4c
parentaab975ac856fa42719ab1faa857a89b2d300d45c
Input: xpad - restore LED state after device resume

Set the LED_CORE_SUSPENDRESUME flag on our LED device so the
LED state will be automatically restored by LED core on resume.

Since Xbox One pads stop flashing only when reinitialized, we'll
send them the initialization packet so they calm down too.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c