rtc: pm8xxx: use unaligned le32 helpers
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 2 Feb 2023 15:54:33 +0000 (16:54 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 9 Feb 2023 22:23:44 +0000 (23:23 +0100)
commit79dd75661e4284169768859012a4bf6898cef758
tree369b8427ea52210c978547ce0911013076451913
parentf081b74c1c748a7da972c782c2f974f239a9b51f
rtc: pm8xxx: use unaligned le32 helpers

Use the unaligned le32 helpers instead of open coding when accessing the
time and alarm registers.

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