Skip to contentSkip to conversation

rtc: mxc_v2: use rtc_time64_to_tm in mxc_rtc_read_alarm

PATCH New Alexandre Belloni 1 participant 1 message May 19, 2018

Subsystems (2)
lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: mxc_v2: use rtc_time64_to_tm in mxc_rtc_read_alarm

Use the 64-bit version of rtc_time_to_tm in mxc_rtc_read_alarm

---
 drivers/rtc/rtc-mxc_v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-mxc_v2.c +1 -1
index 24ca74ca632a..c75f26dc8fcc 100644
@@ -193,7 +193,7 @@ static int mxc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
 	if (ret)
 		return ret;
 
-	rtc_time_to_tm(readl(ioaddr + SRTC_LPSAR), &alrm->time);
+	rtc_time64_to_tm(readl(ioaddr + SRTC_LPSAR), &alrm->time);
 	alrm->pending = !!(readl(ioaddr + SRTC_LPSR) & SRTC_LPSR_ALP);
 	return mxc_rtc_unlock(pdata);
 }
Signature · 1 line
2.17.0