History

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.

Mattias Jacobsson committed 7 years ago

Commit 440c4981 parent a48e2338 files · +11 −8Browse files

Showing the changes to include/linux (1 of 8 files). Show all

Unified · Split

include/linux/wmi.h+1−1
@@ -44,7 +44,7 @@ struct wmi_driver { · 43 unmodified lines
44 struct device_driver driver;44 struct device_driver driver;
45 const struct wmi_device_id *id_table;45 const struct wmi_device_id *id_table;
46 46
47 int (*probe)(struct wmi_device *wdev);47 int (*probe)(struct wmi_device *wdev, const void *context);
48 int (*remove)(struct wmi_device *wdev);48 int (*remove)(struct wmi_device *wdev);
49 void (*notify)(struct wmi_device *device, union acpi_object *data);49 void (*notify)(struct wmi_device *device, union acpi_object *data);
50 long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd,50 long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t