Commit 91f3849d authored by Alexandre Belloni's avatar Alexandre Belloni

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: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018153651.82069-1-alexandre.belloni@bootlin.com
parent adb17a05
...@@ -441,6 +441,7 @@ config RTC_DRV_X1205 ...@@ -441,6 +441,7 @@ config RTC_DRV_X1205
config RTC_DRV_PCF8523 config RTC_DRV_PCF8523
tristate "NXP PCF8523" tristate "NXP PCF8523"
select REGMAP_I2C
help help
If you say yes here you get support for the NXP PCF8523 RTC If you say yes here you get support for the NXP PCF8523 RTC
chips. chips.
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment