rtc: rtc-ds1307 add ds3231
commit97f902b7be4dd6ba03c6aa8d3400783ed687ebd1
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 17 Jun 2009 23:26:10 +0000 (17 16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:43 +0000 (18 13:03 -0700)
tree219df2ddebc1b6ab2acf071fdcc6d507e1e649a3
parent33df2ee1bb59b8cd14e3a375d826a40de21f388c
rtc: rtc-ds1307 add ds3231

Add ds3231 variant.  For that, the BBSQI bit position was changed from a
simple define into a lookup-array as it differs.  This also removes
writing to an unused bit in case of the ds1337.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1307.c