]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc266d94fbc505baa191aba190de923805b41d3dc
tree5a94799aa90e91d78f6f361435fa6d2b2de413f1
parent8982d031994e4e9172baa4a8a89e4c82d1dd546c
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