]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: intel-vbtn: Use acpi_has_method to check for switch
authorGwendal Grignou <gwendal@chromium.org>
Fri, 29 Mar 2024 14:32:05 +0000 (07:32 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 8 Apr 2024 15:30:33 +0000 (18:30 +0300)
commit868adf8a29179c00309ddd8ffe0afa2043f42cb5
tree4266b0c35d12f31e292ed53eb8c1ad15b6240d37
parent0dd50b3e2c3d651ea972c97cff1af67870f3deaf
platform/x86: intel-vbtn: Use acpi_has_method to check for switch

The check for a device having virtual buttons is done using
acpi_has_method(..."VBDL"). Mimic that for checking virtual switch
presence.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240329143206.2977734-2-gwendal@chromium.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/vbtn.c