]> git.dujemihanovic.xyz Git - u-boot.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)
commit992c1db45591b891935a6da5c3f14d8af5def05b
tree17a27182e132e737035202d4514905d6255a1ffe
parent0938cff73727f562cd49c55e1d47d09bbffd4915
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