sony-laptop: keyboard backlight fixes
authorMarco Chiappero <marco@absence.it>
Tue, 5 Apr 2011 14:38:34 +0000 (23:38 +0900)
committerMatthew Garrett <mjg@redhat.com>
Tue, 12 Apr 2011 15:27:44 +0000 (11:27 -0400)
commitdf410d522410e676602a14eb5957c4b3e1fa3902
tree6d40e4c8544c6f64bb6d521403a6d3e5b45e3e21
parent855b8bc9953fdf40095fdec9d91d49736ca7b17c
sony-laptop: keyboard backlight fixes

Restore the original state on module removal, set the latest values on
resume.
When setting the keyboard backlight mode try to turn on/off backlight
immediately.

[malattia@linux.it: patch taken from a largely modified sony-laptop.c,
ported and slightly modified to use defines already available.]

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c