]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: ds1672: use rtc_time64_to_tm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 7 Apr 2019 21:05:38 +0000 (23:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Apr 2019 12:35:33 +0000 (14:35 +0200)
Use the 64bit version of rtc_time_to_tm.rtc_time_to_tm.

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

index 81f1aaeb8964ad36d94201a7b32864743af810e8..653abef2e5cd24a746d2ef5db3d1f68c01bf271f 100644 (file)
@@ -74,7 +74,7 @@ static int ds1672_read_time(struct device *dev, struct rtc_time *tm)
        time = ((unsigned long)buf[3] << 24) | (buf[2] << 16) |
               (buf[1] << 8) | buf[0];
 
-       rtc_time_to_tm(time, tm);
+       rtc_time64_to_tm(time, tm);
 
        dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, "
                "mday=%d, mon=%d, year=%d, wday=%d\n",