diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-05-05 00:43:07 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2024-05-07 23:39:19 +0200 |
commit | 6a216cbadbe061f16472981982aa2bcc20ea54a0 (patch) | |
tree | 691c0f43b0308e2cf0217ce0597218731a6ff139 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 1c431b92e21bcbfc374f97d801840c1df47e3d6b (diff) |
rtc: rx6110: Constify struct regmap_config
'regmap_spi_config' and 'regmap_i2c_config' are not modified in this diver
and are only used as a const struct regmap_config.
Constifying these structures moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
text data bss dec hex filename
8896 1554 32 10482 28f2 drivers/rtc/rtc-rx6110.o
After:
text data bss dec hex filename
9536 914 32 10482 28f2 drivers/rtc/rtc-rx6110.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/833a7f612c0de9dcb1179a0b75b189c237a335ac.1714862560.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions