rtc: ds1307: fix century bit support
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 13 Jul 2016 00:26:08 +0000 (02:26 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 Aug 2016 16:21:34 +0000 (18:21 +0200)
commit50d6c0ea8111100a102c03b4410ba1e45fa8b771
treee118f6f86d3ff9df9c36223bcbea76f4fa3fb193
parent59e5e70c9516a0ba34dd5a1a44ed89518cd5eda9
rtc: ds1307: fix century bit support

Add an option to properly support the century bit of ds1337 and compatibles
and ds1340.
Because the driver had a bug until now, it is not possible to switch users
to the fixed code directly as RTCs in the field will wrongly have the
century bit set.

Acked-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-ds1307.c