diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-10-18 17:36:46 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-10-18 17:38:05 +0200 |
commit | 91f3849d956d58073ef55e01f2e8871dc30847a5 (patch) | |
tree | 0f5f49ef3bf1e1a11ef1728bf6bbf05091de301f /drivers/rtc/Kconfig | |
parent | rtc: expose RTC_FEATURE_UPDATE_INTERRUPT (diff) | |
download | linux-91f3849d956d58073ef55e01f2e8871dc30847a5.tar.xz linux-91f3849d956d58073ef55e01f2e8871dc30847a5.zip |
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/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 59dc1410a160..8dc92b4e042f 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. |