]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: ltc3676: Constify ltc3676_regulators
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 17 Jun 2020 22:32:45 +0000 (00:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 12:47:33 +0000 (13:47 +0100)
commit1b5568e660c97ab4e484b0fb2b5998811cef9147
tree862a71bdc92e1a0d1a9e5e82ab0b036e1005bba9
parent1b7aa18f046500aaa30bf23bb116f4a46a22b968
regulator: ltc3676: Constify ltc3676_regulators

ltc3676_regulators is not modified and can be made const to allow the
compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   4361    2064       8    6433    1921 drivers/regulator/ltc3676.o

After:
   text    data     bss     dec     hex filename
   6121     304       8    6433    1921 drivers/regulator/ltc3676.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200617223247.25566-4-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3676.c