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
4444 struct device_driver driver;
4545 const struct wmi_device_id *id_table;
4646
47− int (*probe)(struct wmi_device *wdev);
47+ int (*probe)(struct wmi_device *wdev, const void *context);
4848 int (*remove)(struct wmi_device *wdev);
4949 void (*notify)(struct wmi_device *device, union acpi_object *data);
5050 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