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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -798,6 +798,7 @@ struct tee_client_device_id { · 797 unmodified lines | |||
| 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 */ |