aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-tps6586x.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-04-20 18:14:25 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-03 22:46:25 +0200
commit337fa19cc31541e2574dacbde8def1abe05a8739 (patch)
treea6741543bfeb41e51fd68132f6ac46b4bb39b77c /drivers/rtc/rtc-tps6586x.c
parentrtc: vr41xx: remove mktime usage (diff)
downloadlinux-dev-337fa19cc31541e2574dacbde8def1abe05a8739.tar.xz
linux-dev-337fa19cc31541e2574dacbde8def1abe05a8739.zip
rtc: ls1x: remove mktime usage
The loongson1 platform is 32-bit, so storing a time value in 32 bits suffers from limited range. In this case it is likely to be correct until 2106, but it's better to avoid the limitation and just use the time64_t based mktime64() and rtc_time64_to_tm() interfaces. The hardware uses a 32-bit year number, and time64_t can cover that entire range. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-tps6586x.c')
0 files changed, 0 insertions, 0 deletions