rtc: rv3032: constify rv3032_rtc_ops
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Jan 2021 23:17:50 +0000 (00:17 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:27 +0000 (23:19 +0100)
commit19588d50a2d67c3ca40f4609f59cbda9e55bdfb5
treef8b772974c666388985a4c90782a163cd8d316fc
parent9476b67bf9fa4be0d16a36d1d14685b114cffdb9
rtc: rv3032: constify rv3032_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-16-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv3032.c