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)
commite51cdef0819e171abdf4ceaea0385f21e29df46b
treefcca93ae8d68fe79ab70f47f82d1cc6c26ebc338
parentc1325e730caf66b81e629d6587415571ae0c20dc
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