]> 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)
commit0fdd98d15a9f2984f05370b1452d90ad63e9b05d
tree23f5b0829fb53b2afee2bd499f2f91cff1aba4d3
parent7d17d6699db0b58002f3f53984eb7685a3cadd29
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