]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf8523: let the core handle the alarm resolution
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 9 Mar 2022 16:22:46 +0000 (17:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:39 +0000 (19:58 +0100)
commit3ec36de26208fc0f722c73239d91b1fdbc559bb6
treefcca93ae8d68fe79ab70f47f82d1cc6c26ebc338
parentbe50e03d73237cc9a08845d56860578654cf442d
rtc: pcf8523: let the core handle the alarm resolution

Set RTC_FEATURE_ALARM_RES_MINUTE, so the core knows alarms have a
resolution of a minute. Also, the core will properly round down the alarm
instead of up.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220309162301.61679-15-alexandre.belloni@bootlin.com
drivers/rtc/rtc-pcf8523.c