Skip to content

Commit 964e186

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: Switch i2c drivers back to use .probe()
After commit b8a1a4c ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f ("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/20230505220218.1239542-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org
1 parent ac9a786 commit 964e186

56 files changed

Lines changed: 56 additions & 56 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

drivers/regulator/88pg86x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static struct i2c_driver pg86x_regulator_driver = {
104104
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
105105
.of_match_table = of_match_ptr(pg86x_dt_ids),
106106
},
107-
.probe_new = pg86x_i2c_probe,
107+
.probe = pg86x_i2c_probe,
108108
.id_table = pg86x_i2c_id,
109109
};
110110

drivers/regulator/act8865-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ static struct i2c_driver act8865_pmic_driver = {
791791
.name = "act8865",
792792
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
793793
},
794-
.probe_new = act8865_pmic_probe,
794+
.probe = act8865_pmic_probe,
795795
.id_table = act8865_ids,
796796
};
797797

drivers/regulator/ad5398.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static int ad5398_probe(struct i2c_client *client)
254254
}
255255

256256
static struct i2c_driver ad5398_driver = {
257-
.probe_new = ad5398_probe,
257+
.probe = ad5398_probe,
258258
.driver = {
259259
.name = "ad5398",
260260
.probe_type = PROBE_PREFER_ASYNCHRONOUS,

drivers/regulator/da9121-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ static struct i2c_driver da9121_regulator_driver = {
11971197
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
11981198
.of_match_table = of_match_ptr(da9121_dt_ids),
11991199
},
1200-
.probe_new = da9121_i2c_probe,
1200+
.probe = da9121_i2c_probe,
12011201
.remove = da9121_i2c_remove,
12021202
.id_table = da9121_i2c_id,
12031203
};

drivers/regulator/da9210-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static struct i2c_driver da9210_regulator_driver = {
224224
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
225225
.of_match_table = of_match_ptr(da9210_dt_ids),
226226
},
227-
.probe_new = da9210_i2c_probe,
227+
.probe = da9210_i2c_probe,
228228
.id_table = da9210_i2c_id,
229229
};
230230

drivers/regulator/da9211-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static struct i2c_driver da9211_regulator_driver = {
555555
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
556556
.of_match_table = of_match_ptr(da9211_dt_ids),
557557
},
558-
.probe_new = da9211_i2c_probe,
558+
.probe = da9211_i2c_probe,
559559
.id_table = da9211_i2c_id,
560560
};
561561

drivers/regulator/fan53555.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ static struct i2c_driver fan53555_regulator_driver = {
775775
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
776776
.of_match_table = of_match_ptr(fan53555_dt_ids),
777777
},
778-
.probe_new = fan53555_regulator_probe,
778+
.probe = fan53555_regulator_probe,
779779
.id_table = fan53555_id,
780780
};
781781

drivers/regulator/fan53880.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static struct i2c_driver fan53880_regulator_driver = {
175175
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
176176
.of_match_table = fan53880_dt_ids,
177177
},
178-
.probe_new = fan53880_i2c_probe,
178+
.probe = fan53880_i2c_probe,
179179
.id_table = fan53880_i2c_id,
180180
};
181181
module_i2c_driver(fan53880_regulator_driver);

drivers/regulator/isl6271a-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static struct i2c_driver isl6271a_i2c_driver = {
149149
.name = "isl6271a",
150150
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
151151
},
152-
.probe_new = isl6271a_probe,
152+
.probe = isl6271a_probe,
153153
.id_table = isl6271a_id,
154154
};
155155

drivers/regulator/isl9305.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static struct i2c_driver isl9305_regulator_driver = {
198198
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
199199
.of_match_table = of_match_ptr(isl9305_dt_ids),
200200
},
201-
.probe_new = isl9305_i2c_probe,
201+
.probe = isl9305_i2c_probe,
202202
.id_table = isl9305_i2c_id,
203203
};
204204

0 commit comments

Comments
 (0)