rtc: ftrtc010: handle dates after 2106
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 4 Jun 2018 14:15:27 +0000 (16:15 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 7 Jun 2018 18:10:11 +0000 (20:10 +0200)
commit73318f8b6bf0dbdbff4f21a3fff02d1467479555
tree2c01b2f00c3a2a61bedaff2545d1aec338520fbc
parente38d161f51982d56637d12eb9ad7e1f057be5202
rtc: ftrtc010: handle dates after 2106

Use correct types for offset and time and use
rtc_time64_to_tm/rtc_tm_to_time64 to handle dates after 2106 properly.

Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ftrtc010.c