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