Input: xpad - use LED API when identifying wireless controllers
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 16 Dec 2015 22:24:58 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:01 +0000 (09:48 +0100)
commitb4f7f63c2fa88e5f3c3fdb16576d867cb8972452
tree0807a9ab45a704b917aa2474a30bdf0229af5a54
parent0d5f5eafb5a8fa11cbda30004f1441cbf0348f18
Input: xpad - use LED API when identifying wireless controllers

[ Upstream commit d9be398afb2c3333716324352d062c50112e4e86 ]

When lighting up the segment identifying wireless controller, Instead of
sending command directly to the controller, let's do it via LED API (usinf
led_set_brightness) so that LED object state is in sync with controller
state and we'll light up the correct segment on resume as well.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c