rtc: rzn1: Report maximum alarm limit to rtc core
authorGuenter Roeck <linux@roeck-us.net>
Thu, 17 Aug 2023 22:55:37 +0000 (15:55 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 27 Aug 2023 21:50:22 +0000 (23:50 +0200)
commit2b0386d578836b9cd5d2e63cff38b7229c319e4a
tree44a25cab10ba13dba598451c54a99cfbde7df878
parent46b79ac0b463e155b098805ff66f1f22ff249b45
rtc: rzn1: Report maximum alarm limit to rtc core

RZN1 only supports alarms up to one week in the future.
Report the limit to the RTC core and use the reported limit
to validate the requested alarm time when setting it.

Cc: Brian Norris <briannorris@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230817225537.4053865-8-linux@roeck-us.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rzn1.c