]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: ab-eoz9: fix abeoz9_rtc_read_alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 12 Nov 2024 15:11:18 +0000 (16:11 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Nov 2024 11:14:37 +0000 (12:14 +0100)
commitfb1283bfa25e65c2d1e3c916b3d67af6609573e9
tree66c1baa71386ac9368595c70949ebda1371be2ca
parentbb3d498f013e8d31a774c9a8f363baf1eb16ea01
rtc: ab-eoz9: fix abeoz9_rtc_read_alarm

abeoz9_rtc_read_alarm assumes we always read the alarm in 12-hour mode
while abeoz9_rtc_set_alarm will always set it in 24-hour mode.

We could support 12-hour mode in both functions but it seems very unlikely
that the RTC would be set to 12-hour mode now as the driver has been
setting it to 24-hour mode for a while now. The setting is undefined at
power-up and unchanged by subsequent resets which doesn't help us.

Link: https://lore.kernel.org/r/20241112151119.3451611-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ab-eoz9.c