Skip to content

Commit e4b8807

Browse files
Uwe Kleine-KönigJiri Kosina
authored andcommitted
HID: i2c-hid: Switch i2c drivers back to use .probe()
After commit b8a1a4c ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f ("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_driver. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent fa56e0e commit e4b8807

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/hid/i2c-hid/i2c-hid-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static struct i2c_driver i2c_hid_acpi_driver = {
118118
.acpi_match_table = i2c_hid_acpi_match,
119119
},
120120

121-
.probe_new = i2c_hid_acpi_probe,
121+
.probe = i2c_hid_acpi_probe,
122122
.remove = i2c_hid_core_remove,
123123
.shutdown = i2c_hid_core_shutdown,
124124
};

drivers/hid/i2c-hid/i2c-hid-of-elan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static struct i2c_driver elan_i2c_hid_ts_driver = {
118118
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
119119
.of_match_table = of_match_ptr(elan_i2c_hid_of_match),
120120
},
121-
.probe_new = i2c_hid_of_elan_probe,
121+
.probe = i2c_hid_of_elan_probe,
122122
.remove = i2c_hid_core_remove,
123123
.shutdown = i2c_hid_core_shutdown,
124124
};

drivers/hid/i2c-hid/i2c-hid-of-goodix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static struct i2c_driver goodix_i2c_hid_ts_driver = {
114114
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
115115
.of_match_table = of_match_ptr(goodix_i2c_hid_of_match),
116116
},
117-
.probe_new = i2c_hid_of_goodix_probe,
117+
.probe = i2c_hid_of_goodix_probe,
118118
.remove = i2c_hid_core_remove,
119119
.shutdown = i2c_hid_core_shutdown,
120120
};

drivers/hid/i2c-hid/i2c-hid-of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static struct i2c_driver i2c_hid_of_driver = {
157157
.of_match_table = of_match_ptr(i2c_hid_of_match),
158158
},
159159

160-
.probe_new = i2c_hid_of_probe,
160+
.probe = i2c_hid_of_probe,
161161
.remove = i2c_hid_core_remove,
162162
.shutdown = i2c_hid_core_shutdown,
163163
.id_table = i2c_hid_of_id_table,

0 commit comments

Comments
 (0)