Unverified Commit 964e1865 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

regulator: Switch i2c drivers back to use .probe()



After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230505220218.1239542-1-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ac9a7868
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ static struct i2c_driver pg86x_regulator_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
		.of_match_table = of_match_ptr(pg86x_dt_ids),
	},
	.probe_new = pg86x_i2c_probe,
	.probe = pg86x_i2c_probe,
	.id_table = pg86x_i2c_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -791,7 +791,7 @@ static struct i2c_driver act8865_pmic_driver = {
		.name	= "act8865",
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
	},
	.probe_new	= act8865_pmic_probe,
	.probe		= act8865_pmic_probe,
	.id_table	= act8865_ids,
};

+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ static int ad5398_probe(struct i2c_client *client)
}

static struct i2c_driver ad5398_driver = {
	.probe_new = ad5398_probe,
	.probe = ad5398_probe,
	.driver		= {
		.name	= "ad5398",
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 −1
Original line number Diff line number Diff line
@@ -1197,7 +1197,7 @@ static struct i2c_driver da9121_regulator_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
		.of_match_table = of_match_ptr(da9121_dt_ids),
	},
	.probe_new = da9121_i2c_probe,
	.probe = da9121_i2c_probe,
	.remove = da9121_i2c_remove,
	.id_table = da9121_i2c_id,
};
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ static struct i2c_driver da9210_regulator_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
		.of_match_table = of_match_ptr(da9210_dt_ids),
	},
	.probe_new = da9210_i2c_probe,
	.probe = da9210_i2c_probe,
	.id_table = da9210_i2c_id,
};

Loading