HID: sony: Use LED_CORE_SUSPENDRESUME
authorFrank Praznik <frank.praznik@gmail.com>
Wed, 8 Feb 2017 18:58:43 +0000 (13:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Apr 2018 10:12:46 +0000 (12:12 +0200)
commite6061c11c3b5a8f1bba97bfe3cd1af5f95cfca95
treee508089778fa3c1482a2d56869efee6b8fce9483
parent4bb797afd7ba5d76fa6fa5a8d4fe930c2c2e029d
HID: sony: Use LED_CORE_SUSPENDRESUME

commit 765a1077c85e5f2efcc43582f80caf43a052e903 upstream.

The LED subsystem provides the LED_CORE_SUSPENDRESUME flag to handle
automatically turning off and restoring the state of device LEDs during
suspend/resume.  Use this flag instead of saving and restoring the state
locally.

Signed-off-by: Frank Praznik <frank.praznik@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-sony.c