]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: rtc: resolve year 2038 problem in rtc_to_tm
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 7 Jul 2018 21:39:11 +0000 (23:39 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 19 Jul 2018 21:03:36 +0000 (17:03 -0400)
commit124ba82d325cb0b3b69b0e08304b28aebb949dae
tree17a27182e132e737035202d4514905d6255a1ffe
parent63a3d3f70c670aeb7c9d3dc15176d09ddec045af
drivers: rtc: resolve year 2038 problem in rtc_to_tm

Our implementation of rtc_to_tm() cannot handle dates of more than
0x7fffffff seconds after 1970-01-01.

Adopt the Linux kernel implementation.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/rtc/Makefile
drivers/rtc/date.c
drivers/rtc/i2c_rtc_emul.c
drivers/rtc/rtc-lib.c [new file with mode: 0644]
include/rtc.h