asus-laptop: Add support for Keyboard backlight
commitb7d3fbc2ed624cc216adda0f2574570e6d6d6aed
authorCorentin Chary <corentincj@iksaif.net>
Fri, 28 Aug 2009 12:56:50 +0000 (28 12:56 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 19:21:13 +0000 (28 15:21 -0400)
treef15a61d393a6e12618ba7074aa5cf1eb14813a70
parent977c328d81e31fde70c5ba381d9cf7357451dd74
asus-laptop: Add support for Keyboard backlight

Add support for keyboard backlight found in Asus U50VG.

The SMC driver for the Apples does it via LED. To be
consistent with that we create /sys/class/leds/asus::kbd_backlight/
to control the keyboard backlight.

SLKB and GLKB are used to get/set the backlight. On
the U50VG is supports 4 brightness level, but this may
change with other models.

SLKB take a 8 bit integer where the higher bit is used
to toggle the backlight, and the over 7 bits control the
brightness level.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/asus-laptop.c