Skip to content

Commit f5bb4e3

Browse files
Uwe Kleine-KönigTzung-Bi Shih
authored andcommitted
platform/chrome: 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]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4b9abbc commit f5bb4e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/platform/chrome/cros_ec_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ static struct i2c_driver cros_ec_driver = {
372372
.of_match_table = of_match_ptr(cros_ec_i2c_of_match),
373373
.pm = &cros_ec_i2c_pm_ops,
374374
},
375-
.probe_new = cros_ec_i2c_probe,
375+
.probe = cros_ec_i2c_probe,
376376
.remove = cros_ec_i2c_remove,
377377
.id_table = cros_ec_i2c_id,
378378
};

drivers/platform/chrome/cros_hps_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ MODULE_DEVICE_TABLE(acpi, hps_acpi_id);
143143
#endif /* CONFIG_ACPI */
144144

145145
static struct i2c_driver hps_i2c_driver = {
146-
.probe_new = hps_i2c_probe,
146+
.probe = hps_i2c_probe,
147147
.remove = hps_i2c_remove,
148148
.id_table = hps_i2c_id,
149149
.driver = {

0 commit comments

Comments
 (0)