]> 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)
commit77965c3a8079da588fa17a2a22dc69c0f8df001d
treee118f6f86d3ff9df9c36223bcbea76f4fa3fb193
parent4779a627cc2fba634a773e4cdc818e1c281777a5
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