]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbb0829907c410243fa4742a30723c2f9b1b085b
tree7ad8ce5731eafbdd395c63b2c747d1e876aed65e
parent81e12afef5be6878b5022f9a8cbff06aac0e70cc
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