rtc: pcf8523: switch to regmap
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:36:46 +0000 (17:36 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:38:05 +0000 (17:38 +0200)
commit91f3849d956d58073ef55e01f2e8871dc30847a5
tree0f5f49ef3bf1e1a11ef1728bf6bbf05091de301f
parentadb17a053e460f20740d713c4843d6966e66b1b1
rtc: pcf8523: switch to regmap

Use regmap to access the RTC registers, this is a huge reduction in code
lines and generated code. Values on ARMv7:

   text    data     bss     dec     hex
   5180     132       0    5312    14c0 before
   3900     132       0    4032     fc0 after

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018153651.82069-1-alexandre.belloni@bootlin.com
drivers/rtc/Kconfig
drivers/rtc/rtc-pcf8523.c