• Carlo Caione's avatar
    HID: asus: support backlight on USB keyboards · af22a610
    Carlo Caione authored
    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: default avatarCarlo Caione <carlo@endlessm.com>
    Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    af22a610
Kconfig 28.9 KB