rtc: add dm_rtc_read helper and ->read method
Some users may want to read multiple consecutive 8-bit registers. Instead of each caller having to implement the loop, provide a dm_rtc_read() helper. Also, allow a driver to provide a ->read method, which can be more efficient than reading one register at a time. Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Schocher <hs@denx.de> Signed-off-by: NRasmus Villemoes <rasmus.villemoes@prevas.dk>
Showing
想要评论请 注册 或 登录