]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: support backlight on USB keyboards
authorCarlo Caione <carlo@endlessm.com>
Thu, 6 Apr 2017 10:18:17 +0000 (12:18 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 12 Apr 2017 20:30:29 +0000 (22:30 +0200)
commit61d7a06a6a02ec3e317e05b8483ed2f28641ac45
tree98aea4d9d982ce18522e0dfc6ac37dec4507689e
parent37dcaf1116f62723565ad0e89b164e185ea1df19
HID: asus: support backlight on USB keyboards

The latest USB keyboards shipped on several ASUS laptop models
(including ROG laptop models such as GL702VMK) have the keyboards
backlight controlled by the keyboard firmware.

The firmware implements at least 3 different commands:
- Init command (to use when the system starts)
- Configuration command (to get keyboard status/information)
- Backlight level control (to change the level of the keyboard light)

With this patch we create the usual 'asus::kbd_backlight' led class
entry to control the keyboard backlight.

[jkosina@suse.cz: remove pointless cancel_work_sync() call while
 handling an error in asus_kbd_register_leds(), as spotted by
 Benjamin]

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-asus.c