commit | 579c9923d43ed4560ad9fb3ca139bf48de8e0b39 | [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 | b9e40a2880e4ea8779c4175b38876eff623fca27 [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>