Skip to contentSkip to conversation

rtc: brcmstb-waketimer: switch to rtc_time64_to_tm

PATCH Superseded Alexandre Belloni 1 participant 1 message Mar 20, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: brcmstb-waketimer: switch to rtc_time64_to_tm

Call the 64bit version of rtc_time_to_tm as the range is enforced by the core.

---
 drivers/rtc/rtc-brcmstb-waketimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-brcmstb-waketimer.c +1 -1
index f4010a75f2be..ee6021b3d967 100644
@@ -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;
 }
Signature · 1 line
2.20.1