Commit 53523216 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ds2404: switch to rtc_time64_to_tm



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

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 13bfa942
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ static int ds2404_read_time(struct device *dev, struct rtc_time *dt)
	ds2404_read_memory(dev, 0x203, 4, (u8 *)&time);
	time = le32_to_cpu(time);

	rtc_time_to_tm(time, dt);
	rtc_time64_to_tm(time, dt);
	return 0;
}