]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf2123: define registers and bit macros
authorJoshua Clayton <stillcompiling@gmail.com>
Mon, 4 Jan 2016 18:31:19 +0000 (10:31 -0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:07:40 +0000 (17:07 +0100)
commit563aea970392de8f1321ac743ced7b3948853ae6
treea053819c63a52dd3d0ad916ac8dfc689359b9185
parent965bafad215a035bbf7fe86288982c812c29ce63
rtc: pcf2123: define registers and bit macros

Add defines for all 16 registers in the pcf2123.
Add defines for useful bits from several registers
I've tried to document all the registers, and
as best as possible, all the special bits they employ

Use BIT() wherever possible in the bit definitions

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