sony-laptop: adjust keyboard backlight values for off/auto/on
authorJavier Achirica <jachirica@gmail.com>
Thu, 20 Mar 2014 23:01:18 +0000 (08:01 +0900)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 6 Apr 2014 16:58:12 +0000 (12:58 -0400)
commit0380d4711e2a2190d56bf04ecdc3d6dd2621efd7
treeff84bd961d6ff0fe526160f056a61c2726b04145
parent168de1add461184df0ec27258518be94f277b023
sony-laptop: adjust keyboard backlight values for off/auto/on

Keyboard backlight can be always off, use some automatic trigger
(activity and light sensor), always on.
The behaviour of the driver changes whereby previously when passed 1 it
tried to turn on backlight immediately now it does nothing. This is
however a bug fix since (a) it makes little sense to turn on the
backlight when control is automatic and (b) this behaviour is
consistent with what the windows driver does.

Signed-off-by: Javier Achirica <jachirica@gmail.com>
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/sony-laptop.c