rtc: ds1307: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:44:54 +0000 (23:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 9 Jan 2023 22:03:56 +0000 (23:03 +0100)
commit4cd0ca1fe9a79d81a001ff14f14035531773fe43
tree368c0b621431f76a4ef699b49978a51b786cb7a0
parent101ca8d05913b7d1e6e8b9dd792193d4082fff86
rtc: ds1307: Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-561-uwe@kleine-koenig.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c