Skip to content

Commit 31b0cec

Browse files
Uwe Kleine-Königalexandrebelloni
authored andcommitted
rtc: 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/20230505121136.1185653-1-u.kleine-koenig@pengutronix.de Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent b191189 commit 31b0cec

35 files changed

Lines changed: 35 additions & 35 deletions

drivers/rtc/rtc-ab-b5ze-s3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ static struct i2c_driver abb5zes3_driver = {
944944
.pm = &abb5zes3_rtc_pm_ops,
945945
.of_match_table = of_match_ptr(abb5zes3_dt_match),
946946
},
947-
.probe_new = abb5zes3_probe,
947+
.probe = abb5zes3_probe,
948948
.id_table = abb5zes3_id,
949949
};
950950
module_i2c_driver(abb5zes3_driver);

drivers/rtc/rtc-ab-eoz9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ static struct i2c_driver abeoz9_driver = {
584584
.name = "rtc-ab-eoz9",
585585
.of_match_table = of_match_ptr(abeoz9_dt_match),
586586
},
587-
.probe_new = abeoz9_probe,
587+
.probe = abeoz9_probe,
588588
.id_table = abeoz9_id,
589589
};
590590

drivers/rtc/rtc-abx80x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ static struct i2c_driver abx80x_driver = {
992992
.name = "rtc-abx80x",
993993
.of_match_table = of_match_ptr(abx80x_of_match),
994994
},
995-
.probe_new = abx80x_probe,
995+
.probe = abx80x_probe,
996996
.id_table = abx80x_id,
997997
};
998998

drivers/rtc/rtc-bq32k.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static struct i2c_driver bq32k_driver = {
320320
.name = "bq32k",
321321
.of_match_table = of_match_ptr(bq32k_of_match),
322322
},
323-
.probe_new = bq32k_probe,
323+
.probe = bq32k_probe,
324324
.remove = bq32k_remove,
325325
.id_table = bq32k_id,
326326
};

drivers/rtc/rtc-ds1307.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ static struct i2c_driver ds1307_driver = {
20112011
.name = "rtc-ds1307",
20122012
.of_match_table = ds1307_of_match,
20132013
},
2014-
.probe_new = ds1307_probe,
2014+
.probe = ds1307_probe,
20152015
.id_table = ds1307_id,
20162016
};
20172017

drivers/rtc/rtc-ds1374.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static struct i2c_driver ds1374_driver = {
572572
.of_match_table = of_match_ptr(ds1374_of_match),
573573
.pm = &ds1374_pm,
574574
},
575-
.probe_new = ds1374_probe,
575+
.probe = ds1374_probe,
576576
.remove = ds1374_remove,
577577
.id_table = ds1374_id,
578578
};

drivers/rtc/rtc-ds1672.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static struct i2c_driver ds1672_driver = {
149149
.name = "rtc-ds1672",
150150
.of_match_table = of_match_ptr(ds1672_of_match),
151151
},
152-
.probe_new = ds1672_probe,
152+
.probe = ds1672_probe,
153153
.id_table = ds1672_id,
154154
};
155155

drivers/rtc/rtc-ds3232.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static struct i2c_driver ds3232_driver = {
603603
.of_match_table = of_match_ptr(ds3232_of_match),
604604
.pm = &ds3232_pm_ops,
605605
},
606-
.probe_new = ds3232_i2c_probe,
606+
.probe = ds3232_i2c_probe,
607607
.id_table = ds3232_id,
608608
};
609609

drivers/rtc/rtc-em3027.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static struct i2c_driver em3027_driver = {
147147
.name = "rtc-em3027",
148148
.of_match_table = of_match_ptr(em3027_of_match),
149149
},
150-
.probe_new = em3027_probe,
150+
.probe = em3027_probe,
151151
.id_table = em3027_id,
152152
};
153153

drivers/rtc/rtc-fm3130.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static struct i2c_driver fm3130_driver = {
517517
.driver = {
518518
.name = "rtc-fm3130",
519519
},
520-
.probe_new = fm3130_probe,
520+
.probe = fm3130_probe,
521521
.id_table = fm3130_id,
522522
};
523523

0 commit comments

Comments
 (0)