mfd: Switch two more drivers back to use struct i2c_driver::probe
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 26 Jun 2023 09:19:41 +0000 (11:19 +0200)
committerLee Jones <lee@kernel.org>
Mon, 26 Jun 2023 15:38:30 +0000 (16:38 +0100)
struct i2c_driver::probe_new is about to go away. Switch the driver to
use the probe callback with the same prototype.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230626091941.557733-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77541.c
drivers/mfd/tps6594-i2c.c

index 4a3bad3..e147e94 100644 (file)
@@ -214,7 +214,7 @@ static struct i2c_driver max77541_driver = {
                .name = "max77541",
                .of_match_table = max77541_of_id,
        },
-       .probe_new = max77541_probe,
+       .probe = max77541_probe,
        .id_table = max77541_id,
 };
 module_i2c_driver(max77541_driver);
index 50a3cd0..899c88c 100644 (file)
@@ -235,7 +235,7 @@ static struct i2c_driver tps6594_i2c_driver = {
                .name = "tps6594",
                .of_match_table = tps6594_i2c_of_match_table,
        },
-       .probe_new = tps6594_i2c_probe,
+       .probe = tps6594_i2c_probe,
 };
 module_i2c_driver(tps6594_i2c_driver);