aboutsummaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-07-06 22:01:10 +0200
committerHeiko Schocher <hs@denx.de>2020-07-09 06:02:44 +0200
commitd8be08805bc03d53b0dd6953792fba543a4f3890 (patch)
tree1236ca71b86c47aa4c135881018078dc6974a6ef /disk
parent35d3982e23d3449d93bcc4f1990e929998d69936 (diff)
downloadu-boot-d8be08805bc03d53b0dd6953792fba543a4f3890.zip
u-boot-d8be08805bc03d53b0dd6953792fba543a4f3890.tar.gz
u-boot-d8be08805bc03d53b0dd6953792fba543a4f3890.tar.bz2
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>
Diffstat (limited to 'disk')
0 files changed, 0 insertions, 0 deletions