]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 22 Mar 2019 07:26:12 +0000 (08:26 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:10 +0000 (10:07 +0200)
commitbe02839538345d89f77ec9941d0e48e34bc8b8fd
treeec295697ca097efd4ab15ee220490fcb7d68f7df
parentac44b312a47257ffb337d0e5ac1c6baad11da545
rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900

Printing "mktime64(1900, 1, 1, 0, 0, 0)" gives -2208988800.

Fixes: 756e45f4e14bbfa8 ("rtc: Add useful timestamp definitions")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/linux/rtc.h