platform/x86: asus-wmi: Implement TUF laptop keyboard power states
authorLuke D. Jones <luke@ljones.dev>
Thu, 25 Aug 2022 23:22:51 +0000 (11:22 +1200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 26 Aug 2022 09:48:06 +0000 (11:48 +0200)
commit61f64515299e5f4885093656087ec1c0df8109c5
treecdccc7184bfb7f2ec9534630776845f4e7eac977
parente305a71cea37a64c7558b8b979f6f08f657d0c3d
platform/x86: asus-wmi: Implement TUF laptop keyboard power states

Adds support for setting various power states of TUF keyboards.
These states are combinations of:
- boot, set if a boot animation is shown on keyboard
- awake, set if the keyboard LEDs are visible while laptop is on
- sleep, set if an animation is displayed while the laptop is suspended
- keyboard (unknown effect)

Adds two sysfs attributes to asus::kbd_backlight:
- kbd_rgb_state
- kbd_rgb_state_index

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20220825232251.345893-3-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