diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-05-27 00:47:03 +0300 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2023-05-29 03:37:29 +0300 |
commit | f5bb4e381290883a014a9e865ee2c430447ef953 (patch) | |
tree | 2b1729b1685ce77004b5944cb7827892a09f1281 /drivers/platform/chrome/cros_ec_i2c.c | |
parent | 4b9abbc132b86e2ce65090798186836f48f33382 (diff) | |
download | linux-f5bb4e381290883a014a9e865ee2c430447ef953.tar.xz |
platform/chrome: Switch i2c drivers back to use .probe()
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("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
Diffstat (limited to 'drivers/platform/chrome/cros_ec_i2c.c')
-rw-r--r-- | drivers/platform/chrome/cros_ec_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/cros_ec_i2c.c b/drivers/platform/chrome/cros_ec_i2c.c index dbe698f33128..e29c51cbfd71 100644 --- a/drivers/platform/chrome/cros_ec_i2c.c +++ b/drivers/platform/chrome/cros_ec_i2c.c @@ -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, }; |