diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2018-04-20 18:14:26 +0200 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-03 22:46:25 +0200 |
| commit | 7982df86711d06bfb88c74d9da16bf9f8e99cbaf (patch) | |
| tree | a244d19c44309c5c04ef457b3559360c01fa34b4 /drivers/rtc/rtc-stm32.c | |
| parent | 337fa19cc31541e2574dacbde8def1abe05a8739 (diff) | |
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>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
0 files changed, 0 insertions, 0 deletions
