diff options
author | 2018-04-20 18:14:24 +0200 | |
---|---|---|
committer | 2018-05-03 22:46:25 +0200 | |
commit | 0d1c655380be0962842beeb82772bf37820ebda6 (patch) | |
tree | 3d56dc3767bcca51da6ab14a6224cb12a75eadcd /drivers/rtc/rtc-tps6586x.c | |
parent | rtc: ds1340: Add support for trickle charger. (diff) | |
download | wireguard-linux-0d1c655380be0962842beeb82772bf37820ebda6.tar.xz wireguard-linux-0d1c655380be0962842beeb82772bf37820ebda6.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-tps6586x.c')
0 files changed, 0 insertions, 0 deletions