Re: [PATCH v4 01/11] rtc: add dm_rtc_read helper and ->read method

2020-07-09 Thread Heiko Schocher
Hello Rasmus, Am 06.07.2020 um 22:01 schrieb Rasmus Villemoes: 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

[PATCH v4 01/11] rtc: add dm_rtc_read helper and ->read method

2020-07-06 Thread Rasmus Villemoes
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