From: Alexandre Belloni Date: Thu, 21 Mar 2019 10:15:57 +0000 (+0100) Subject: rtc: da9063: switch to rtc_time64_to_tm/rtc_tm_to_time64 X-Git-Tag: v5.2-rc1~105^2~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b599db3a9f40582d0a3aad6ec16ba1c3712d57c2;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-da9063.c b/drivers/rtc/rtc-da9063.c index b7052156e851e..1b792bcea3c78 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)