Skip to content
Commit a783c962 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: allow rtc_read_alarm without read_alarm callback



.read_alarm is not necessary to read the current alarm because it is
recorded in the aie_timer and so rtc_read_alarm() will never call
rtc_read_alarm_internal() which is the only function calling the callback.

Reported-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
Reported-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fixes: 7ae41220 ("rtc: introduce features bitfield")
Tested-by: default avatarPhilippe Schenker <philippe.schenker@toradex.com>
Link: https://lore.kernel.org/r/20230214222754.582582-1-alexandre.belloni@bootlin.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 2d433e9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment