]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf8563: let the core handle the alarm resolution
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 9 Mar 2022 16:22:47 +0000 (17:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:39 +0000 (19:58 +0100)
commit47d4edf01170cd14a036868238ccfdd51e4d971e
tree4fb82880265454724ac395bdaec28e97112d2593
parent3ec36de26208fc0f722c73239d91b1fdbc559bb6
rtc: pcf8563: 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-16-alexandre.belloni@bootlin.com
drivers/rtc/rtc-pcf8563.c