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

Commit 9a8f2d12 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

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.

Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 24db953e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}