]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hid-asus: use hid for brightness control on keyboard
authorLuke D. Jones <luke@ljones.dev>
Sat, 13 Jul 2024 07:47:33 +0000 (19:47 +1200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 5 Aug 2024 14:56:02 +0000 (16:56 +0200)
commita720dee5e039238a44c0142dfccdc0e35c1125f7
treeb3f57a0195b05938cd0330b25f04faddba65294a
parentbcbfcebda2cbc6a10a347d726e4a4f69e43a864e
hid-asus: use hid for brightness control on keyboard

On almost all ASUS ROG series laptops the MCU used for the USB keyboard
also has a HID packet used for setting the brightness. This is usually
the same as the WMI method. But in some laptops the WMI method either
is missing or doesn't work, so we should default to the HID control.

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