]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: cpcap: Constify cpcap_regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 17 Jun 2020 22:32:44 +0000 (00:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 12:47:32 +0000 (13:47 +0100)
commit1b7aa18f046500aaa30bf23bb116f4a46a22b968
treee346f869874a90c39450d66698551d35caf633e6
parentb0fc695fc606693cc27f6d4f9c8bcbf39bfc7a69
regulator: cpcap: Constify cpcap_regulator_ops

cpcap_regulator_ops 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
  14472     236       0   14708    3974 drivers/regulator/cpcap-regulator.o

After:
   text    data     bss     dec     hex filename
  14604     104       0   14708    3974 drivers/regulator/cpcap-regulator.o

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