rtc: pcf2123: clean up reads from the chip
authorJoshua Clayton <stillcompiling@gmail.com>
Mon, 4 Jan 2016 18:31:20 +0000 (10:31 -0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:07:48 +0000 (17:07 +0100)
commit66c056d6a1f7392b4fe49500ad65fd96e4d94435
treedc9e67a7ff39e43fdd4612a4defd5d7cbaeda4bf
parent245cb74be649ada355ca68f1cc9cfec519aae612
rtc: pcf2123: clean up reads from the chip

Put read operations into a function.
This improves modularity and readability.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf2123.c