summaryrefslogtreecommitdiff
path: root/include/linux/wmi.h
diff options
context:
space:
mode:
authorMattias Jacobsson <2pi@mok.nu>2019-05-27 19:21:30 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-17 15:22:47 +0300
commit440c4983de262f78033ec58f6abcd199a664327d (patch)
tree90be45f40a11262d0808c17ae7eead61741c1c48 /include/linux/wmi.h
parenta48e23385fcf397e69e2a75d72a81c545ec8bec2 (diff)
downloadlinux-440c4983de262f78033ec58f6abcd199a664327d.tar.xz
platform/x86: wmi: add context argument to the probe function
The struct wmi_device_id has a context pointer field, forward this pointer as an argument to the probe function in struct wmi_driver. Update existing users of the same probe function to accept this new context argument. Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/wmi.h')
-rw-r--r--include/linux/wmi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h
index 592f81afecbb..1e84c474a993 100644
--- a/include/linux/wmi.h
+++ b/include/linux/wmi.h
@@ -44,7 +44,7 @@ struct wmi_driver {
struct device_driver driver;
const struct wmi_device_id *id_table;
- int (*probe)(struct wmi_device *wdev);
+ int (*probe)(struct wmi_device *wdev, const void *context);
int (*remove)(struct wmi_device *wdev);
void (*notify)(struct wmi_device *device, union acpi_object *data);
long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd,