diff options
author | Mattias Jacobsson <2pi@mok.nu> | 2019-05-27 12:21:29 -0400 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-06-17 08:22:47 -0400 |
commit | a48e23385fcf397e69e2a75d72a81c545ec8bec2 (patch) | |
tree | b6e0d215dac9ce32eb308ffe88c337c0b4d483e4 /include/linux/mod_devicetable.h | |
parent | 3e58167ac3703c9b15a8600ab559d239f3d4dd97 (diff) |
platform/x86: wmi: add context pointer field to struct wmi_device_id
When using wmi_install_notify_handler() to initialize a WMI handler a
data pointer can be supplied which will be passed on to the notification
handler. No similar feature exist when handling WMI events via struct
wmi_driver.
Add a context field pointer to struct wmi_device_id and add a function
find_guid_context() to retrieve that context pointer.
Signed-off-by: Mattias Jacobsson <2pi@mok.nu>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 448621c32e4d..09366859aac2 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -798,6 +798,7 @@ struct tee_client_device_id { | |||
798 | */ | 798 | */ |
799 | struct wmi_device_id { | 799 | struct wmi_device_id { |
800 | const char guid_string[UUID_STRING_LEN+1]; | 800 | const char guid_string[UUID_STRING_LEN+1]; |
801 | const void *context; | ||
801 | }; | 802 | }; |
802 | 803 | ||
803 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 804 | #endif /* LINUX_MOD_DEVICETABLE_H */ |