* [PATCH v2] rtc: brcmstb-waketimer: switch to rtc_time64_to_tm
@ 2019-03-25 17:17 Alexandre Belloni
2019-03-25 17:18 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Belloni @ 2019-03-25 17:17 UTC (permalink / raw)
To: linux-rtc, Florian Fainelli; +Cc: linux-kernel, Alexandre Belloni
Call the 64bit version of rtc_time_to_tm as the range is enforced by the
core.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-brcmstb-waketimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c
index f4010a75f2be..a193396a8140 100644
--- a/drivers/rtc/rtc-brcmstb-waketimer.c
+++ b/drivers/rtc/rtc-brcmstb-waketimer.c
@@ -132,7 +132,7 @@ static int brcmstb_waketmr_gettime(struct device *dev,
wktmr_read(timer, &now);
- rtc_time_to_tm(now.sec, tm);
+ rtc_time64_to_tm(now.sec, tm);
return 0;
}
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-25 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-25 17:17 [PATCH v2] rtc: brcmstb-waketimer: switch to rtc_time64_to_tm Alexandre Belloni
2019-03-25 17:18 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).