• Arnd Bergmann's avatar
    rtc: vr41xx: remove mktime usage · 0d1c6553
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
    0d1c6553
rtc-vr41xx.c 8.5 KB