]> 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)
commit763e1cf55c484eba75de60f45da45bfe50dceba5
treea053819c63a52dd3d0ad916ac8dfc689359b9185
parent6ed56e0f50b972f7f1cd762518f17e1c656ab56c
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