Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e83f03f authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

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

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 95fbfa14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}