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.
Showing the changes to include/linux (1 of 8 files). Show all
Unified · Split
| @@ -44,7 +44,7 @@ struct wmi_driver { · 43 unmodified lines | ||
| 44 | 44 | struct device_driver driver; |
| 45 | 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 | 48 | int (*remove)(struct wmi_device *wdev); |
| 49 | 49 | void (*notify)(struct wmi_device *device, union acpi_object *data); |
| 50 | 50 | long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd, |