]> git.baikalelectronics.ru Git - kernel.git/commit
thinkpad_acpi: save kbdlight state on suspend and restore it on resume
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 23 May 2016 22:39:51 +0000 (00:39 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 27 May 2016 18:47:55 +0000 (11:47 -0700)
commitafcedebc6a094224973534f43b396bbbf33fe44e
treef8f3741b8e432615db8d3628717a7121c3289428
parenta29ccf6ff3e07061253b9209a65edb8c0126f78d
thinkpad_acpi: save kbdlight state on suspend and restore it on resume

Override default LED class suspend/resume handles, by keeping track of
the brightness level before suspending so that it can be automatically
restored on resume by calling default resume handler.

Signed-off-by: Marco Trevisan (Treviño) <mail@3v1n0.net>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c