Input: xpad - restore LED state after device resume
authorCameron Gutman <aicommander@gmail.com>
Tue, 7 Feb 2017 01:03:03 +0000 (17:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:03 +0000 (09:48 +0100)
commit1517734740c16975e1cde3bbe77ba0d39faea6bf
tree725064da15a989a117e1f1c2240e2df5afb52b9e
parentd91bbfcc4ecd09e8d36eec374031996953e2e8f5
Input: xpad - restore LED state after device resume

[ Upstream commit a1fbf5bbef025b4844162b3b8868888003a7ee9c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c