rtc: pcf2127: bulk read only date and time registers.
authorSean Nyekjaer <sean.nyekjaer@prevas.dk>
Thu, 23 Feb 2017 14:01:24 +0000 (15:01 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 23 Feb 2017 17:38:54 +0000 (18:38 +0100)
commit3769a375ab8380ebecc78d0a3fe6e9079f9d6988
treecb7fd21fee3b4f690415f20102a30606a448c10f
parent34f54f579a9988e96e85e22fc151c15955ae40f0
rtc: pcf2127: bulk read only date and time registers.

Read control registers one by one and bulk read time registers.
This fixes when the clock is read, the watchdog counter register is zeroed.

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf2127.c