diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-06 01:59:58 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-16 11:12:09 +0100 |
commit | 0a22bd6fe46db507b4e9d3ea2db3dc8ed480b0b3 (patch) | |
tree | 8cec2e33a651ceb5ad954701bd773dbacc79a79e /drivers/rtc/rtc-au1xxx.c | |
parent | b1b686e4b0d165ae7c1e356ecf8da790ee8f8dcf (diff) | |
download | lwn-0a22bd6fe46db507b4e9d3ea2db3dc8ed480b0b3.tar.gz lwn-0a22bd6fe46db507b4e9d3ea2db3dc8ed480b0b3.zip |
rtc: au1xxx: switch to rtc_time64_to_tm/rtc_tm_to_time64
Call the 64bit versions of rtc_tm time conversion.
Link: https://lore.kernel.org/r/20200306005958.39203-4-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-au1xxx.c')
-rw-r--r-- | drivers/rtc/rtc-au1xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-au1xxx.c b/drivers/rtc/rtc-au1xxx.c index e186fb5cfffd..791bebcb6f47 100644 --- a/drivers/rtc/rtc-au1xxx.c +++ b/drivers/rtc/rtc-au1xxx.c @@ -34,7 +34,7 @@ static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm) t = alchemy_rdsys(AU1000_SYS_TOYREAD); - rtc_time_to_tm(t, tm); + rtc_time64_to_tm(t, tm); return 0; } @@ -43,7 +43,7 @@ static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm) { unsigned long t; - rtc_tm_to_time(tm, &t); + t = rtc_tm_to_time64(tm); alchemy_wrsys(t, AU1000_SYS_TOYWRITE); |