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)
commite48585dec2bd0183436437995e30d20dfa92f6aa
tree5b478c380ab2b6e549fb836d683651f44181a291
parent078f3f6452c8be74fd406733f99f2cb0d9c50efc
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