rtc: cmos: Report supported alarm limit to rtc infrastructure
authorGuenter Roeck <linux@roeck-us.net>
Thu, 17 Aug 2023 22:55:34 +0000 (15:55 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 27 Aug 2023 21:50:22 +0000 (23:50 +0200)
commit2546e7083f2ea96bdd6157961dc2748d65a9e487
treeae2899ec7adf87c6b961e17a0c8b2656adde0d6a
parent00c3092d881bc9d63dc36eecd140cdb38962c7ec
rtc: cmos: Report supported alarm limit to rtc infrastructure

The alarm window supported by the cmos RTC depends on the chip
and its configuration. Report the limit to the RTC core.

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