]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lenovo-wmi-hotkey: Avoid triggering error -5 due to missing mute LED
authorJackie Dong <xy-jackie@139.com>
Wed, 9 Jul 2025 03:57:16 +0000 (11:57 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 9 Jul 2025 08:49:20 +0000 (11:49 +0300)
commitc86f7bb92f1ffbacb18634356bf0573047eab6a0
treeccee909da8682de09db2deaf1e56347b87a97b9d
parente10981075adce203eac0be866389309eeb8ef11e
lenovo-wmi-hotkey: Avoid triggering error -5 due to missing mute LED

Not all of Lenovo non-ThinkPad devices support both mic mute LED (on F4)
and audio mute LED (on F1). Some of them only support one mute LED, some
of them don't have any mute LEDs. If any of the mute LEDs is missing,
the driver reports error -5.

Check if the device supports a mute LED or not. Do not trigger error -5
message from missing a mute LED if it is not supported on the device.

Signed-off-by: Jackie Dong <xy-jackie@139.com>
Suggested-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250709035716.36267-1-xy-jackie@139.com
[ij: major edits to the changelog.]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo-wmi-hotkey-utilities.c