Commit c050dedb authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni

rtc: nct3018y: Convert to .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221021130706.178687-6-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 67db6f05
...@@ -452,8 +452,7 @@ static const struct rtc_class_ops nct3018y_rtc_ops = { ...@@ -452,8 +452,7 @@ static const struct rtc_class_ops nct3018y_rtc_ops = {
.ioctl = nct3018y_ioctl, .ioctl = nct3018y_ioctl,
}; };
static int nct3018y_probe(struct i2c_client *client, static int nct3018y_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct nct3018y *nct3018y; struct nct3018y *nct3018y;
int err, flags; int err, flags;
...@@ -541,7 +540,7 @@ static struct i2c_driver nct3018y_driver = { ...@@ -541,7 +540,7 @@ static struct i2c_driver nct3018y_driver = {
.name = "rtc-nct3018y", .name = "rtc-nct3018y",
.of_match_table = of_match_ptr(nct3018y_of_match), .of_match_table = of_match_ptr(nct3018y_of_match),
}, },
.probe = nct3018y_probe, .probe_new = nct3018y_probe,
.id_table = nct3018y_id, .id_table = nct3018y_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment