OSDN Git Service

rtc: ds2404: switch to rtc_time64_to_tm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 08:24:57 +0000 (10:24 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 20:37:16 +0000 (22:37 +0200)
Call the 64bit version of rtc_time_to_tm now that the range is enforced by
the core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds2404.c

index 7b36c09..17606e0 100644 (file)
@@ -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;
 }