rtc: pm8xxx: refactor read_time()
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 2 Feb 2023 15:54:39 +0000 (16:54 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 9 Feb 2023 22:23:44 +0000 (23:23 +0100)
commitda862c3df6add928e2f51d6cadec128a9a1940f3
tree91ed03925df79e47e33f68346db111492d81041a
parent35d9c472925748a1cb1f5b6cc8ae71cf8138e30f
rtc: pm8xxx: refactor read_time()

In preparation for adding support for setting the time by means of an
externally stored offset, refactor read_time() by adding a new helper
that can be used to retrieve the raw time as stored in the RTC.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230202155448.6715-14-johan+linaro@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pm8xxx.c