platform/x86: wmi: add context pointer field to struct wmi_device_id
authorMattias Jacobsson <2pi@mok.nu>
Mon, 27 May 2019 16:21:29 +0000 (18:21 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Jun 2019 12:22:47 +0000 (15:22 +0300)
commita48e23385fcf397e69e2a75d72a81c545ec8bec2
treeb6e0d215dac9ce32eb308ffe88c337c0b4d483e4
parent3e58167ac3703c9b15a8600ab559d239f3d4dd97
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>
drivers/platform/x86/wmi.c
include/linux/mod_devicetable.h