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)
commit8d41df6469eec8d784137aeeebf87dca7460ce37
tree78e869d4f98bfae0c6d73cade16ee69a3b5e558a
parentbfa29acd18e53ff44135f2eae2b942419a8582cc
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