rtc: m41t80: constify m41t80_rtc_ops
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Jan 2021 23:17:46 +0000 (00:17 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:26 +0000 (23:19 +0100)
commit3948a866822e77571dadaddebb6c5770ee1b1ad1
tree4065635db5f933f1c741c33f4fe08d053a636283
parent732b7341b1411c85c8f7f5f7bf1081b5ca8735bd
rtc: m41t80: constify m41t80_rtc_ops

Use RTC_FEATURE_ALARM to signal to the core whether alarms are available
instead of changing the global struct rtc_class_ops, allowing to make it
const.

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