Skip to content

Commit bcfa8e3

Browse files
Uwe Kleine-Königchanwoochoi
authored andcommitted
extcon: 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: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 93e60cd commit bcfa8e3

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/extcon/extcon-fsa9480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static struct i2c_driver fsa9480_i2c_driver = {
369369
.pm = &fsa9480_pm_ops,
370370
.of_match_table = fsa9480_of_match,
371371
},
372-
.probe_new = fsa9480_probe,
372+
.probe = fsa9480_probe,
373373
.id_table = fsa9480_id,
374374
};
375375

drivers/extcon/extcon-ptn5150.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static struct i2c_driver ptn5150_i2c_driver = {
348348
.name = "ptn5150",
349349
.of_match_table = ptn5150_dt_match,
350350
},
351-
.probe_new = ptn5150_i2c_probe,
351+
.probe = ptn5150_i2c_probe,
352352
.id_table = ptn5150_i2c_id,
353353
};
354354
module_i2c_driver(ptn5150_i2c_driver);

drivers/extcon/extcon-rt8973a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static struct i2c_driver rt8973a_muic_i2c_driver = {
695695
.pm = &rt8973a_muic_pm_ops,
696696
.of_match_table = rt8973a_dt_match,
697697
},
698-
.probe_new = rt8973a_muic_i2c_probe,
698+
.probe = rt8973a_muic_i2c_probe,
699699
.remove = rt8973a_muic_i2c_remove,
700700
.id_table = rt8973a_i2c_id,
701701
};

drivers/extcon/extcon-sm5502.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static struct i2c_driver sm5502_muic_i2c_driver = {
840840
.pm = &sm5502_muic_pm_ops,
841841
.of_match_table = sm5502_dt_match,
842842
},
843-
.probe_new = sm5022_muic_i2c_probe,
843+
.probe = sm5022_muic_i2c_probe,
844844
.id_table = sm5502_i2c_id,
845845
};
846846

drivers/extcon/extcon-usbc-tusb320.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ static const struct of_device_id tusb320_extcon_dt_match[] = {
593593
MODULE_DEVICE_TABLE(of, tusb320_extcon_dt_match);
594594

595595
static struct i2c_driver tusb320_extcon_driver = {
596-
.probe_new = tusb320_probe,
596+
.probe = tusb320_probe,
597597
.remove = tusb320_remove,
598598
.driver = {
599599
.name = "extcon-tusb320",

0 commit comments

Comments
 (0)