aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2021-10-18 17:36:46 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-10-18 17:38:05 +0200
commit91f3849d956d58073ef55e01f2e8871dc30847a5 (patch)
tree0f5f49ef3bf1e1a11ef1728bf6bbf05091de301f /drivers/rtc/Kconfig
parentadb17a053e460f20740d713c4843d6966e66b1b1 (diff)
downloadlinux-91f3849d956d58073ef55e01f2e8871dc30847a5.tar.gz
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
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r--drivers/rtc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 59dc1410a160b..8dc92b4e042fc 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -441,6 +441,7 @@ config RTC_DRV_X1205
config RTC_DRV_PCF8523
tristate "NXP PCF8523"
+ select REGMAP_I2C
help
If you say yes here you get support for the NXP PCF8523 RTC
chips.