rtc: sc27xx: Always read normal alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 17 Nov 2020 21:22:01 +0000 (22:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 19 Nov 2020 11:46:39 +0000 (12:46 +0100)
commit7d9d4868ec0b34dbfc74b3075dc1e896cc98f783
treed82f53b3c813b58dcd6fd056bc4d56c3e6f87ae7
parentba7aa63000f26c5a2c87d5a716601499a02a3156
rtc: sc27xx: Always read normal alarm

The RTC core only reads the alarm from the hardware at boot time, to know
whether an alarm was already set before booting. It keeps track of all the
alarms after that so there is no need to ever read the auxiliary alarm.

Commit 3822d1bb0df1 ("rtc: sc27xx: Always read normal alarm when
registering RTC device") already effectively removed the capability to read
the auxiliary alarm as .read_alarm is always called with rtc->registered set
to false.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Chunyan Zhang <zhang.lyra@gmail.com>
Link: https://lore.kernel.org/r/20201117212201.1288608-1-alexandre.belloni@bootlin.com
drivers/rtc/rtc-sc27xx.c