]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6189fdef6c1879bf6daa98d3d5462a92db38a42b
treed4d0d46376de833dd3cc094dac8d4d9af94d9d3e
parent79af3645ee91dbddbaba1b503f7440cb64852b94
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