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

Commit 30adde6b authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: imx-sc: use rtc_time64_to_tm



The imx-sc driver properly sets range_max, use rtc_time64_to_tm() instead
of the deprecated rtc_time_to_tm()

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 51f896ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm)
		return ret;
	}

	rtc_time_to_tm(msg.time, tm);
	rtc_time64_to_tm(msg.time, tm);

	return 0;
}