diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-07-18 23:14:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-19 16:00:46 +0300 |
commit | 2920e08bef609c8b59f9996fd6852a7b97119d75 (patch) | |
tree | f15338e8cdb8ab8c3825cc1bd92ddd25e6bbfc97 /drivers/regulator/max77857-regulator.c | |
parent | 6023fffc3e276d1ab0d1262ea9be3b720325fede (diff) | |
download | linux-2920e08bef609c8b59f9996fd6852a7b97119d75.tar.xz |
regulator: max77857: Switch back to use struct i2c_driver's .probe()
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
commit 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>
Link: https://lore.kernel.org/r/20230718201453.3953602-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max77857-regulator.c')
-rw-r--r-- | drivers/regulator/max77857-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77857-regulator.c b/drivers/regulator/max77857-regulator.c index c5482ffd606e..d0fcb080f825 100644 --- a/drivers/regulator/max77857-regulator.c +++ b/drivers/regulator/max77857-regulator.c @@ -449,7 +449,7 @@ struct i2c_driver max77857_driver = { .of_match_table = max77857_of_id, }, .id_table = max77857_id, - .probe_new = max77857_probe, + .probe = max77857_probe, }; module_i2c_driver(max77857_driver); |