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)
commita1fbf5bbef025b4844162b3b8868888003a7ee9c
treed14a093d17958692a359f3f4dbff7bf7fd434b4c
parentd5e6e0fa442a479e27dfb7d17aeef1260dc19b09
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