HID: lg-g15: Add keyboard and LCD backlight control
authorHans de Goede <hdegoede@redhat.com>
Wed, 28 Aug 2019 12:41:26 +0000 (14:41 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Oct 2019 18:48:27 +0000 (20:48 +0200)
commit97b741aba918c4143f4208d2421d08ff215c1b49
tree3d0fa796733f6f469f9bc8de28538938ea7c7160
parent3a0275384c2716d3bdb9c65ec31cf45f53274ac6
HID: lg-g15: Add keyboard and LCD backlight control

Register a led_classdev for the keyboard backlight and another one for
the LCD backlight.

This commit also includes LED_BRIGHT_HW_CHANGED support, which together
with a desktop-environment which supports this, such as GNOME3 leads to
the kbd-backlight OSD being show with the new level when changing the
backlight setting through the hotkey on the keyboard.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lg-g15.c