Skip to content

Commit fe20b1d

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: 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> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent eae36cb commit fe20b1d

31 files changed

Lines changed: 31 additions & 31 deletions

drivers/power/supply/adp5061.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static struct i2c_driver adp5061_driver = {
736736
.driver = {
737737
.name = KBUILD_MODNAME,
738738
},
739-
.probe_new = adp5061_probe,
739+
.probe = adp5061_probe,
740740
.id_table = adp5061_id,
741741
};
742742
module_i2c_driver(adp5061_driver);

drivers/power/supply/bd99954-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ static struct i2c_driver bd9995x_driver = {
10771077
.name = "bd9995x-charger",
10781078
.of_match_table = bd9995x_of_match,
10791079
},
1080-
.probe_new = bd9995x_probe,
1080+
.probe = bd9995x_probe,
10811081
};
10821082
module_i2c_driver(bd9995x_driver);
10831083

drivers/power/supply/bq2415x_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ static struct i2c_driver bq2415x_driver = {
17801780
.of_match_table = of_match_ptr(bq2415x_of_match_table),
17811781
.acpi_match_table = ACPI_PTR(bq2415x_i2c_acpi_match),
17821782
},
1783-
.probe_new = bq2415x_probe,
1783+
.probe = bq2415x_probe,
17841784
.remove = bq2415x_remove,
17851785
.id_table = bq2415x_i2c_id_table,
17861786
};

drivers/power/supply/bq24190_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ static const struct of_device_id bq24190_of_match[] = {
20332033
MODULE_DEVICE_TABLE(of, bq24190_of_match);
20342034

20352035
static struct i2c_driver bq24190_driver = {
2036-
.probe_new = bq24190_probe,
2036+
.probe = bq24190_probe,
20372037
.remove = bq24190_remove,
20382038
.shutdown = bq24190_shutdown,
20392039
.id_table = bq24190_i2c_ids,

drivers/power/supply/bq24257_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ static struct i2c_driver bq24257_driver = {
11651165
.acpi_match_table = ACPI_PTR(bq24257_acpi_match),
11661166
.pm = &bq24257_pm,
11671167
},
1168-
.probe_new = bq24257_probe,
1168+
.probe = bq24257_probe,
11691169
.remove = bq24257_remove,
11701170
.id_table = bq24257_i2c_ids,
11711171
};

drivers/power/supply/bq24735-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ static struct i2c_driver bq24735_charger_driver = {
505505
.name = "bq24735-charger",
506506
.of_match_table = bq24735_match_ids,
507507
},
508-
.probe_new = bq24735_charger_probe,
508+
.probe = bq24735_charger_probe,
509509
.id_table = bq24735_charger_id,
510510
};
511511

drivers/power/supply/bq2515x_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ static struct i2c_driver bq2515x_driver = {
11581158
.name = "bq2515x-charger",
11591159
.of_match_table = bq2515x_of_match,
11601160
},
1161-
.probe_new = bq2515x_probe,
1161+
.probe = bq2515x_probe,
11621162
.id_table = bq2515x_i2c_ids,
11631163
};
11641164
module_i2c_driver(bq2515x_driver);

drivers/power/supply/bq256xx_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ static struct i2c_driver bq256xx_driver = {
18121812
.of_match_table = bq256xx_of_match,
18131813
.acpi_match_table = bq256xx_acpi_match,
18141814
},
1815-
.probe_new = bq256xx_probe,
1815+
.probe = bq256xx_probe,
18161816
.id_table = bq256xx_i2c_ids,
18171817
};
18181818
module_i2c_driver(bq256xx_driver);

drivers/power/supply/bq25890_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ static struct i2c_driver bq25890_driver = {
16461646
.acpi_match_table = ACPI_PTR(bq25890_acpi_match),
16471647
.pm = &bq25890_pm,
16481648
},
1649-
.probe_new = bq25890_probe,
1649+
.probe = bq25890_probe,
16501650
.remove = bq25890_remove,
16511651
.shutdown = bq25890_shutdown,
16521652
.id_table = bq25890_i2c_ids,

drivers/power/supply/bq25980_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ static struct i2c_driver bq25980_driver = {
12871287
.name = "bq25980-charger",
12881288
.of_match_table = bq25980_of_match,
12891289
},
1290-
.probe_new = bq25980_probe,
1290+
.probe = bq25980_probe,
12911291
.id_table = bq25980_i2c_ids,
12921292
};
12931293
module_i2c_driver(bq25980_driver);

0 commit comments

Comments
 (0)