platform/x86: asus-wmi: Implement TUF laptop keyboard LED modes
authorLuke D. Jones <luke@ljones.dev>
Thu, 25 Aug 2022 23:22:50 +0000 (11:22 +1200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 26 Aug 2022 09:44:29 +0000 (11:44 +0200)
commite305a71cea37a64c7558b8b979f6f08f657d0c3d
tree1365a5eb85df4a845feb3c29e85e6a7becf6601f
parent12ff4c803d23218f9afea9f82019a5c9619f6744
platform/x86: asus-wmi: Implement TUF laptop keyboard LED modes

Adds support for changing the laptop keyboard LED mode and colour.

The modes are visible effects such as static, rainbow, pulsing,
colour cycles.

These sysfs attributes are added to asus::kbd_backlight:
- kbd_rgb_mode
- kbd_rgb_mode_index

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20220825232251.345893-2-luke@ljones.dev
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h