Skip to content

Commit

Permalink
rtc: au1xxx: switch to rtc_time64_to_tm/rtc_tm_to_time64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Belloni committed Mar 16, 2020
1 parent b1b686e commit 0a22bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-au1xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);

Expand Down

0 comments on commit 0a22bd6

Please sign in to comment.