]> 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)
commite9df2811564006f9b6fab2ca48038c30a4b9d625
tree4fb82880265454724ac395bdaec28e97112d2593
parente92fee52e40ae661f1e141066c056bb925e34ef4
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