diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-21 11:15:57 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 10:07:10 +0200 |
commit | b599db3a9f40582d0a3aad6ec16ba1c3712d57c2 (patch) | |
tree | d9b37abeabc07b275ad7a788c5829644a118dbcb /drivers/rtc/rtc-da9063.c | |
parent | 5ff404d1496e131f2fccc100cfc153ee2b34b4d3 (diff) | |
download | linux-stable-b599db3a9f40582d0a3aad6ec16ba1c3712d57c2.tar.gz linux-stable-b599db3a9f40582d0a3aad6ec16ba1c3712d57c2.tar.bz2 linux-stable-b599db3a9f40582d0a3aad6ec16ba1c3712d57c2.zip |
rtc: da9063: switch to rtc_time64_to_tm/rtc_tm_to_time64
Call the 64bit versions of rtc_tm time conversion now that the range is
enforced by the core.
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-da9063.c')
-rw-r--r-- | drivers/rtc/rtc-da9063.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-da9063.c b/drivers/rtc/rtc-da9063.c index b7052156e851..1b792bcea3c7 100644 --- a/drivers/rtc/rtc-da9063.c +++ b/drivers/rtc/rtc-da9063.c @@ -239,8 +239,8 @@ static int da9063_rtc_read_time(struct device *dev, struct rtc_time *tm) da9063_data_to_tm(data, tm, rtc); - rtc_tm_to_time(tm, &tm_secs); - rtc_tm_to_time(&rtc->alarm_time, &al_secs); + tm_secs = rtc_tm_to_time64(tm); + al_secs = rtc_tm_to_time64(&rtc->alarm_time); /* handle the rtc synchronisation delay */ if (rtc->rtc_sync == true && al_secs - tm_secs == 1) |