HID: lg-g15: Add support for controlling the G510's RGB backlight
commit1f8cde2a538b9bff65c57432beb5e58c91b373e9
authorHans de Goede <hdegoede@redhat.com>
Wed, 28 Aug 2019 12:41:29 +0000 (28 14:41 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Oct 2019 18:48:27 +0000 (3 20:48 +0200)
tree33c5c5f11cc8e122be16cadc41ae9ed7efe6b92b
parentad4203f5a2435efef161516958f743982c9c2ee8
HID: lg-g15: Add support for controlling the G510's RGB backlight

Note that the keyboard has a backlight on/off toggle button. If the
backlight is turned off through that button, then any changes we make
will be ignored and we cannot turn it back on again from the host.

To workaround this we write the last set RGB values when we receive an
event indicating that the backlight has been turned on again.

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