Skip to content

Commit

Permalink
platform/chrome: Switch i2c drivers back to use .probe()
Browse files Browse the repository at this point in the history
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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230526214703.2135137-1-u.kleine-koenig@pengutronix.de
  • Loading branch information
Uwe Kleine-König authored and Tzung-Bi Shih committed May 29, 2023
1 parent 4b9abbc commit f5bb4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/platform/chrome/cros_ec_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ static struct i2c_driver cros_ec_driver = {
.of_match_table = of_match_ptr(cros_ec_i2c_of_match),
.pm = &cros_ec_i2c_pm_ops,
},
.probe_new = cros_ec_i2c_probe,
.probe = cros_ec_i2c_probe,
.remove = cros_ec_i2c_remove,
.id_table = cros_ec_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/chrome/cros_hps_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ MODULE_DEVICE_TABLE(acpi, hps_acpi_id);
#endif /* CONFIG_ACPI */

static struct i2c_driver hps_i2c_driver = {
.probe_new = hps_i2c_probe,
.probe = hps_i2c_probe,
.remove = hps_i2c_remove,
.id_table = hps_i2c_id,
.driver = {
Expand Down

0 comments on commit f5bb4e3

Please sign in to comment.