mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: Switch two more i2c drivers back to use .probe()
@ 2023-06-11 20:35 Uwe Kleine-König
  2023-06-12 17:04 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2023-06-11 20:35 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: linux-kernel, kernel

The previous conversion back to .probe done in commit 964e186547b2
("regulator: Switch i2c drivers back to use .probe()") was done based on
v6.3. Since then two more drivers were added which need to be convert
back in the same way before eventually .probe_new() can be dropped from
struct i2c_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/regulator/rt5739.c             | 2 +-
 drivers/regulator/tps6287x-regulator.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/rt5739.c b/drivers/regulator/rt5739.c
index 74fc5bf6d87e..0ce6a1666752 100644
--- a/drivers/regulator/rt5739.c
+++ b/drivers/regulator/rt5739.c
@@ -282,7 +282,7 @@ static struct i2c_driver rt5739_driver = {
 		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 		.of_match_table = rt5739_device_table,
 	},
-	.probe_new = rt5739_probe,
+	.probe = rt5739_probe,
 };
 module_i2c_driver(rt5739_driver);
 
diff --git a/drivers/regulator/tps6287x-regulator.c b/drivers/regulator/tps6287x-regulator.c
index 870e63ce3ff2..b1c0963586ac 100644
--- a/drivers/regulator/tps6287x-regulator.c
+++ b/drivers/regulator/tps6287x-regulator.c
@@ -178,7 +178,7 @@ static struct i2c_driver tps6287x_regulator_driver = {
 		.name = "tps6287x",
 		.of_match_table = tps6287x_dt_ids,
 	},
-	.probe_new = tps6287x_i2c_probe,
+	.probe = tps6287x_i2c_probe,
 	.id_table = tps6287x_i2c_id,
 };
 

base-commit: 53ab6975c12d1ad86c599a8927e8c698b144d669
-- 
2.39.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-12 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-11 20:35 [PATCH] regulator: Switch two more i2c drivers back to use .probe() Uwe Kleine-König
2023-06-12 17:04 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®