]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee608c83f59834dd9e984fca03f7395e19f1905c
tree0f5f49ef3bf1e1a11ef1728bf6bbf05091de301f
parentd906c0d47bb7bf2e8d0f7d9ea43cd189147292e7
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