rtc: ds1511: let the core know when alarm are not supported
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 27 Feb 2024 23:04:23 +0000 (00:04 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Feb 2024 21:15:47 +0000 (22:15 +0100)
commitf891570be594de6d5404354ab2c2ecbdc508cbd7
tree2779121ff7cbc370d34e081f0ce91002d14ca941
parent434c9d03ea0db6bb8b1aebb6950781a0496028dd
rtc: ds1511: let the core know when alarm are not supported

Instead of failing function calls, let the core know alarms are not
supported so it can fail early and avoid unnecessary calls.

Link: https://lore.kernel.org/r/20240227230431.1837717-8-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1511.c