rtc: pm8xxx: use u32 for timestamps
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 2 Feb 2023 15:54:38 +0000 (16:54 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 9 Feb 2023 22:23:44 +0000 (23:23 +0100)
commit35d9c472925748a1cb1f5b6cc8ae71cf8138e30f
tree0beda9fac567ca1c35eb8b5bfd0beef49bd4ca5c
parent3c3326394ba420608d0665aef846b2268c9c9629
rtc: pm8xxx: use u32 for timestamps

The PMIC RTC registers are 32-bit so explicitly use u32 rather than
unsigned long for timestamps to reflect the hardware.

This will also help avoid unintentional range extensions when adding
support for managing an external offset.

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