]> 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)
commite8e8cb7a9788b6d854990954582b330a6b04b08d
treeec295697ca097efd4ab15ee220490fcb7d68f7df
parent0b27811e4051ac7cd92d937ac4a66d4a3a313a4f
rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900

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

Fixes: 412f896399e6bf65 ("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