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

2020-06-02 Thread Heiko Schocher
Hello Rasmus, Am 02.06.2020 um 21:13 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 v3 01/10] rtc: add dm_rtc_read helper and ->read method

2020-06-02 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