platform/x86: wmi: Check if WMxx control method exists
authorArmin Wolf <W_Armin@gmx.de>
Tue, 6 Feb 2024 22:04:44 +0000 (23:04 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 7 Feb 2024 13:51:06 +0000 (15:51 +0200)
commit7f1b998a9108f7fd465039323d5fc2599b8cae77
treefa80e8e2ff42174cb32e8d5c6e30e201b13e7f1c
parent197b980644eae1184844d451d10fe3ea51c7597d
platform/x86: wmi: Check if WMxx control method exists

Some devices like the MSI GF63-12VF contain WMI method blocks
without providing the necessary WMxx ACPI control methods.
Avoid creating WMI devices for such WMI method blocks since
the resulting WMI device is going to be unusable.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240206220447.3102-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c