commit | b9e40a2880e4ea8779c4175b38876eff623fca27 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Mon Jul 06 22:01:10 2020 +0200 |
committer | Heiko Schocher <hs@denx.de> | Thu Jul 09 06:02:44 2020 +0200 |
tree | 1236ca71b86c47aa4c135881018078dc6974a6ef | |
parent | 890813f47504f18f824ffb239af5006e50f05fda [diff] |
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: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>