Commit cae62a93 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Mark Brown

regulator: anatop: Constify anatop_core_rops

anatop_core_rops is not modified and can therefore be made const which
allows the compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   4502     412       0    4914    1332 drivers/regulator/anatop-regulator.o

After:
   text    data     bss     dec     hex filename
   4634     280       0    4914    1332 drivers/regulator/anatop-regulator.o
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200617223247.25566-2-rikard.falkeborn@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0ac87aed
...@@ -139,7 +139,7 @@ static struct regulator_ops anatop_rops = { ...@@ -139,7 +139,7 @@ static struct regulator_ops anatop_rops = {
.map_voltage = regulator_map_voltage_linear, .map_voltage = regulator_map_voltage_linear,
}; };
static struct regulator_ops anatop_core_rops = { static const struct regulator_ops anatop_core_rops = {
.enable = anatop_regmap_enable, .enable = anatop_regmap_enable,
.disable = anatop_regmap_disable, .disable = anatop_regmap_disable,
.is_enabled = anatop_regmap_is_enabled, .is_enabled = anatop_regmap_is_enabled,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment