commit | 809b453b76e1544d245b7285fe570f3f20b8bd89 | [log] [tgz] |
---|---|---|
author | Joshua Clayton <stillcompiling@gmail.com> | Mon Jan 04 10:31:21 2016 -0800 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Mon Mar 14 17:07:53 2016 +0100 |
tree | 7a294551a692f30f44af6a63cc2fa2d7a8e404c7 | |
parent | 66c056d6a1f7392b4fe49500ad65fd96e4d94435 [diff] |
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>