From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 9 Jul 2020 10:36:04 +0200 Subject: [PATCH v4 02/11] rtc: add dm_rtc_write() helper In-Reply-To: <20200706200120.23093-3-rasmus.villemoes@prevas.dk> References: <20200706200120.23093-1-rasmus.villemoes@prevas.dk> <20200706200120.23093-3-rasmus.villemoes@prevas.dk> Message-ID: <727fd5b2-f7d7-9c08-475d-17fb0e772529@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Rasmus, Am 06.07.2020 um 22:01 schrieb Rasmus Villemoes: > 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 > Reviewed-by: Heiko Schocher > Signed-off-by: Rasmus Villemoes > --- > drivers/rtc/rtc-uclass.c | 19 +++++++++++++++++++ > include/rtc.h | 24 ++++++++++++++++++++++++ > 2 files changed, 43 insertions(+) Applied to u-boot-i2c.git master Thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de