]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8907: Constify static structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 17 Jun 2020 22:32:46 +0000 (00:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 12:47:34 +0000 (13:47 +0100)
commit81e12afef5be6878b5022f9a8cbff06aac0e70cc
treef1496e445dec95752118fdaffb5e2198477b5303
parent1b5568e660c97ab4e484b0fb2b5998811cef9147
regulator: max8907: Constify static structs

These are not modified so make them const to allow the compiler to put
them in read-only memory.

Before:
   text    data     bss     dec     hex filename
   2753    7328       0   10081    2761 drivers/regulator/max8907-regulator.o

After:
   text    data     bss     dec     hex filename
   9405     684       0   10089    2769 drivers/regulator/max8907-regulator.o

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