Input: xpad - power off wireless 360 controllers on suspend
authorCameron Gutman <aicommander@gmail.com>
Wed, 27 Jul 2016 21:24:55 +0000 (14:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Jul 2016 01:26:09 +0000 (18:26 -0700)
commitf712a5a05228058f6b74635546549d4a46e117fc
tree05bc3812fb025030d820836acc4b5b59d021f1f0
parent4097461897df91041382ff6fcd2bfa7ee6b2448c
Input: xpad - power off wireless 360 controllers on suspend

When the USB wireless adapter is suspended, the controllers
lose their connection. This causes them to start flashing
their LED rings and searching for the wireless adapter
again, wasting the controller's battery power.

Instead, we will tell the controllers to power down when
we suspend. This mirrors the behavior of the controllers
when connected to the console itself and how the official
Xbox One wireless adapter behaves on Windows.

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