]> git.karo-electronics.de Git - karo-tx-linux.git/commit
toshiba_acpi: Add keyboard backlight support
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 26 Mar 2014 02:38:31 +0000 (20:38 -0600)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 6 Apr 2014 15:48:55 +0000 (11:48 -0400)
commit811be48a6c0eca1c222bc97cc345cc2ef519ab9d
tree192136b245ce3b33d8f40abb87b41de9d03c9db4
parent540162a0e19e2e703e1fba5687d7de8ba47442ce
toshiba_acpi: Add keyboard backlight support

Toshiba laptops equiped with an illuminated keyboard
can operate in two different modes: Auto and FN-Z.

The Auto mode turns on the led on keystrokes and
automatically turns it off after some (configurable)
time the last key was pressed.

The FN-Z mode is used to toggle the keyboard led on/off
by userspace.

This patch adds support to set the desired KBD mode and
timeout via sysfs, creates and registers toshiba::kbd_backlight
led device whenever the mode is set to FN-Z.

The acceptable values for mode are: 1 (Auto) and 2 (Fn-Z)
The time values range are: 1-60 seconds

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/toshiba_acpi.c