]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1307: factor out century bit handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 5 Jun 2017 15:57:33 +0000 (17:57 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 20:37:08 +0000 (22:37 +0200)
commita7515be37e56f71598e392ff4d0c5ac85a63c7ed
tree5b478c380ab2b6e549fb836d683651f44181a291
parentc250247057c33699e8d499d3c02af6787cb56506
rtc: ds1307: factor out century bit handling

The driver has lots of places with chip-specific code what doesn't
necessarily facilitate maintenance.

Let's describe chip-specific differences in century bit handling
in struct chip_desc to improve this.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c