rtc: rv8803: constify rv8803_rtc_ops
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Jan 2021 23:17:51 +0000 (00:17 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:27 +0000 (23:19 +0100)
commit45909e5cda3b05ac990f546bd63d229fe7c7197b
tree03108744b4a415bb28d84b8d62505dd2753a23ef
parent19588d50a2d67c3ca40f4609f59cbda9e55bdfb5
rtc: rv8803: constify rv8803_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-17-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv8803.c