rtc: cmos: remove cmos_rtc_ops_no_alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Jan 2021 23:17:39 +0000 (00:17 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:26 +0000 (23:19 +0100)
commit30f5bd537fdb6124b9955858b301577ce4eb8dcd
treecf0aa4ae42f1380d5e7962f3ce398b786da1ade9
parent95151801edce1f56764abf20d075ed96a295fc78
rtc: cmos: remove cmos_rtc_ops_no_alarm

Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of
having a supplementary struct rtc_class_ops with a NULL .set_alarm.

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