commit | 09381829a231f5d2b95568f3178c2bd125a93fac | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Mon Jul 06 22:01:11 2020 +0200 |
committer | Heiko Schocher <hs@denx.de> | Thu Jul 09 06:02:44 2020 +0200 |
tree | 83405845a60efe6d368252c0406cbef7a249c5de | |
parent | d8be08805bc03d53b0dd6953792fba543a4f3890 [diff] |
rtc: add dm_rtc_write() helper Similar to dm_rtc_read(), introduce a helper that allows the caller to write multiple consecutive 8-bit registers with one call. If the driver provides the ->write method, use that, otherwise loop using ->write8. Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>