]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3742919addd4a218ed4a3e458183d709030c5a2a
treee118f6f86d3ff9df9c36223bcbea76f4fa3fb193
parentd34181b00eaa37e3ab773d7d9bc1c959ddb71678
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