rtc: ab-eoz9: make use of RTC_FEATURE_ALARM
authorLiam Beguin <lvb@xiphos.com>
Thu, 8 Apr 2021 02:40:28 +0000 (22:40 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 16 Apr 2021 22:07:16 +0000 (00:07 +0200)
commitc52409eb16672907804b7acf1658bb1fd9dcb426
tree0e601fdc0e7a375fa62d59e86dcc51f3fb95ed60
parente70e52e1bf1d6d0ea60e2f8294d5e76a8d8f5370
rtc: ab-eoz9: make use of RTC_FEATURE_ALARM

Move the alarm callbacks in rtc_ops and use RTC_FEATURE_ALARM to notify
the core whether alarm capabilities are available or not.

Signed-off-by: Liam Beguin <lvb@xiphos.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210408024028.3526564-4-liambeguin@gmail.com
drivers/rtc/rtc-ab-eoz9.c