rtc: tps6586x: remove mktime usage
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2018 16:14:26 +0000 (18:14 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 May 2018 20:46:25 +0000 (22:46 +0200)
commit7982df86711d06bfb88c74d9da16bf9f8e99cbaf
treea244d19c44309c5c04ef457b3559360c01fa34b4
parent337fa19cc31541e2574dacbde8def1abe05a8739
rtc: tps6586x: remove mktime usage

The tps6586x use a 64-bit 'epoch_start' value, but then computes that
value using an 'mktime()', which has a smaller range and overflows
in 2106 at the latest. As both the hardware and the subsystem interface
support wider than 32-bit ranges for rtc times here, let's change all
the operations on 'seconds' to time64_t.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tps6586x.c