rtc: ds1307: replace HAS_ALARM by RTC_FEATURE_ALARM
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 18 Apr 2021 00:00:21 +0000 (02:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Apr 2021 21:04:13 +0000 (23:04 +0200)
commit64e9d8e4dbc4e9173589ed8d61ea423466172396
tree3d651beaa681bcc19cdc1bffef290f5d0a57dfb7
parent7942121b8ca073932529e7122a573ec2d1ed0d93
rtc: ds1307: replace HAS_ALARM by RTC_FEATURE_ALARM

The core now has RTC_FEATURE_ALARM for the driver to indicate whether
alarms are available. Use that instead of HAS_ALARM to ensure the alarm
callbacks are not even called.

Tested-by: Łukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210418000023.995758-1-alexandre.belloni@bootlin.com
drivers/rtc/rtc-ds1307.c