OSDN Git Service

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)
commitd3062d1d7415cb5a37777220357aca51a491c3d7
treeec295697ca097efd4ab15ee220490fcb7d68f7df
parente07fa839d943142487af2dd053dac8974d59e5dd
rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900

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

Fixes: 83bbc5ac63326433 ("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