]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: asus-wmi: Add mic-mute LED classdev support
authorPaddyKP_Yao <PaddyKP_Yao@asus.com>
Mon, 11 Jul 2022 11:51:25 +0000 (19:51 +0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 14 Jul 2022 20:02:57 +0000 (22:02 +0200)
commit9e714bd60d2d615b53d3d844cf61e53041f73dd5
tree3b2c771d221736837e3eb932745fb49b1568240d
parent1fce06d95cf2c0ec01ae32347882de0c423e1447
platform/x86: asus-wmi: Add mic-mute LED classdev support

In some new ASUS devices, hotkey Fn+F13 is used for mic mute. If mic-mute
LED is present by checking WMI ASUS_WMI_DEVID_MICMUTE_LED, we will add a
mic-mute LED classdev, asus::micmute, in the asus-wmi driver to control
it. The binding of mic-mute LED controls will be swithched with LED
trigger.

Signed-off-by: PaddyKP_Yao <PaddyKP_Yao@asus.com>
Link: https://lore.kernel.org/r/20220711115125.2072508-1-PaddyKP_Yao@asus.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h