rtc: pcf2123: clean up writes to the rtc chip
authorJoshua Clayton <stillcompiling@gmail.com>
Mon, 4 Jan 2016 18:31:21 +0000 (10:31 -0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:07:53 +0000 (17:07 +0100)
commit809b453b76e1544d245b7285fe570f3f20b8bd89
tree7a294551a692f30f44af6a63cc2fa2d7a8e404c7
parent66c056d6a1f7392b4fe49500ad65fd96e4d94435
rtc: pcf2123: clean up writes to the rtc chip

Add new functions pcf2123_write(), and pcf2123_write_reg().
Use named defines for the values being written.

This improves modularity and readability, and reduces lines of code.

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