diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-10-21 16:07:02 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-11-15 23:01:33 +0300 |
commit | c050dedb875c2eee920010c1dba458ce5bf8a171 (patch) | |
tree | 7222ddde78a8c11dc69e4b88af45925aa7d0d8f3 /drivers/rtc/rtc-nct3018y.c | |
parent | 67db6f0515d15e6becbd59bc5da4ca2d03d51789 (diff) | |
download | linux-c050dedb875c2eee920010c1dba458ce5bf8a171.tar.xz |
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221021130706.178687-6-u.kleine-koenig@pengutronix.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-nct3018y.c')
-rw-r--r-- | drivers/rtc/rtc-nct3018y.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-nct3018y.c b/drivers/rtc/rtc-nct3018y.c index d43acd3920ed..0a3b14c95d90 100644 --- a/drivers/rtc/rtc-nct3018y.c +++ b/drivers/rtc/rtc-nct3018y.c @@ -452,8 +452,7 @@ static const struct rtc_class_ops nct3018y_rtc_ops = { .ioctl = nct3018y_ioctl, }; -static int nct3018y_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int nct3018y_probe(struct i2c_client *client) { struct nct3018y *nct3018y; int err, flags; @@ -541,7 +540,7 @@ static struct i2c_driver nct3018y_driver = { .name = "rtc-nct3018y", .of_match_table = of_match_ptr(nct3018y_of_match), }, - .probe = nct3018y_probe, + .probe_new = nct3018y_probe, .id_table = nct3018y_id, }; |