regulator: max8997: Constify struct regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 17 Jun 2020 22:32:47 +0000 (00:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 12:47:35 +0000 (13:47 +0100)
commit9ed84d24de480e81294e00814c142234bc17ce0c
tree7ad8ce5731eafbdd395c63b2c747d1e876aed65e
parentb08af72d6e5319e96527816c4b3b08d0b1a6f242
regulator: max8997: Constify struct regulator_ops

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
  13114    8596       0   21710    54ce drivers/regulator/max8997-regulator.o

After:
   text    data     bss     dec     hex filename
  14038    7672       0   21710    54ce drivers/regulator/max8997-regulator.o

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