]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: qcom_spmi: Constify struct regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 29 Jun 2020 19:46:32 +0000 (21:46 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 17:33:15 +0000 (18:33 +0100)
commit71b19dcf52dbfb49b60cc7f271e79a1f3bdfe95f
treef010e48463a358494262e7e1b3b9a8fc740ad999
parent66526913972673924f7287c0dcbb01f7217cccf5
regulator: qcom_spmi: Constify struct regulator_ops

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

Before:
   text    data     bss     dec     hex filename
  20362    2592     152   23106    5a42 drivers/regulator/qcom_spmi-regulator.o

After:
   text    data     bss     dec     hex filename
  21814    1140     152   23106    5a42 drivers/regulator/qcom_spmi-regulator.o

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