rtc: pcf8563: clear RTC_FEATURE_ALARM if no irq
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 1 Mar 2022 13:12:20 +0000 (14:12 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Nov 2022 22:12:50 +0000 (23:12 +0100)
commit60cfac17d0a1c28cd41959e95ba1e0ecc47165e7
tree061929c21671d55db4c0b28294cf957d9942cecc
parent0462681e207ccc44778a77b3297af728b1cf5b9f
rtc: pcf8563: clear RTC_FEATURE_ALARM if no irq

If there is no IRQ hooked up, clear RTC_FEATURE_ALARM to make the core
ensure that userspace is made aware that alarms are not supported.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20220301131220.4011810-1-vincent.whitchurch@axis.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf8563.c