]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: vr41xx: remove mktime usage
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2018 16:14:24 +0000 (18:14 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 May 2018 20:46:25 +0000 (22:46 +0200)
commit0d1c655380be0962842beeb82772bf37820ebda6
tree3d56dc3767bcca51da6ab14a6224cb12a75eadcd
parent51ed73eb998a1c79a2b0e9bed68f75a8a2c93b9b
rtc: vr41xx: remove mktime usage

This driver uses mktime() and rtc_time_to_tm() to convert between time
values. This works fine on 64-bit kernels over the whole supported
range, and the vr41xx chip is a 64-bit MIPS implementation, but it is
inconsistent because it doesn't do the same thing on 32-bit kernels that
overflow in 2106 or 2038.

Changing it to use mktime64/rtc_time64_to_tm() should have no visible
impact on vr41xx but gets us closer to removing the 32-bit interfaces.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-vr41xx.c