]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: qcom_rpm: Constify struct regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 29 Jun 2020 19:46:31 +0000 (21:46 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 17:33:14 +0000 (18:33 +0100)
commit66526913972673924f7287c0dcbb01f7217cccf5
tree78e869d4f98bfae0c6d73cade16ee69a3b5e558a
parent073c5a2943d6c0625c46cd3522b8c73fe21f925b
regulator: qcom_rpm: 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
  17485     500       8   17993    4649 drivers/regulator/qcom_rpm-regulator.o

After:
   text    data     bss     dec     hex filename
  17881     104       8   17993    4649 drivers/regulator/qcom_rpm-regulator.o

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