summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-09-01 06:10:52 +0300
committerHans de Goede <hdegoede@redhat.com>2024-09-05 18:21:59 +0300
commite04e2b760ddbe3d7b283a05898c3a029085cd8cd (patch)
treea117f11681ed87f6aad05a70e3570283c3d9edf5 /include
parent56d8b784c56588cd40f98e4b1d4f6e29e3cb02b8 (diff)
downloadlinux-e04e2b760ddbe3d7b283a05898c3a029085cd8cd.tar.xz
platform/x86: wmi: Pass event data directly to legacy notify handlers
The current legacy WMI handlers are susceptible to picking up wrong WMI event data on systems where different WMI devices share some notification IDs. Prevent this by letting the WMI driver core taking care of retrieving the event data. This also simplifies the legacy WMI handlers and their implementation inside the WMI driver core. Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20240901031055.3030-3-W_Armin@gmx.de Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/acpi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 0687a442fec7..eed105b1fbfb 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -386,7 +386,7 @@ extern bool acpi_is_pnp_device(struct acpi_device *);
#if defined(CONFIG_ACPI_WMI) || defined(CONFIG_ACPI_WMI_MODULE)
-typedef void (*wmi_notify_handler) (u32 value, void *context);
+typedef void (*wmi_notify_handler) (union acpi_object *data, void *context);
int wmi_instance_count(const char *guid);