rtc: fsl-ftm-alarm: avoid struct rtc_time conversions
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Oct 2019 20:12:23 +0000 (22:12 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 8 Nov 2019 15:14:09 +0000 (16:14 +0100)
commitbb451661db2462709674d156e8ca137fbfd3da6c
treed4d0d46376de833dd3cc094dac8d4d9af94d9d3e
parent9323e9631c8502a08a92b831db55ce9c7434d1bd
rtc: fsl-ftm-alarm: avoid struct rtc_time conversions

Directly call ktime_get_real_seconds instead of converting the result to a
struct rtc_time and then back to a time64_t.

Link: https://lore.kernel.org/r/20191016201223.30568-4-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-fsl-ftm-alarm.c