rtc: rv8803: factor out existing register initialization to function
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 26 Apr 2022 07:10:52 +0000 (09:10 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 24 Jun 2022 19:24:02 +0000 (21:24 +0200)
commit8c798e1ec185431a57403a908c379eea1b6bc751
tree5a94799aa90e91d78f6f361435fa6d2b2de413f1
parentd2a632a8a11756197deb1341bbb09c09abaf20ce
rtc: rv8803: factor out existing register initialization to function

The driver probe currently initializes some registers to non-POR
values. These values are not reinstated if the RTC experiences voltage
loss later on. Prepare for fixing this by factoring out the
initialization to a separate function.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220426071056.1187235-2-s.hauer@pengutronix.de
drivers/rtc/rtc-rv8803.c