OSDN Git Service

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)
commitb644c95598adfe2b968e97daee3a890dd2fda84d
tree3b2c771d221736837e3eb932745fb49b1568240d
parentaeb47cb10aa4c2f794aa85e9fd3c9ff028455369
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