aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/mc13xxx.h
diff options
context:
space:
mode:
authorGravatar Axel Lin <axel.lin@ingics.com> 2019-03-01 22:20:53 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2019-03-04 00:01:08 +0000
commite5680c4de3eb3ea5538d11733a91ccef19badd69 (patch)
tree0b210b791fda0cef6d8a2fd6bb65ea8361103c61 /drivers/regulator/mc13xxx.h
parentregulator: palmas: Constify palmas_smps_ramp_delay array (diff)
downloadlinux-e5680c4de3eb3ea5538d11733a91ccef19badd69.tar.gz
linux-e5680c4de3eb3ea5538d11733a91ccef19badd69.tar.bz2
linux-e5680c4de3eb3ea5538d11733a91ccef19badd69.zip
regulator: mc13xxx: Constify regulator_ops variables
These regulator_ops variables should never change, make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mc13xxx.h')
-rw-r--r--drivers/regulator/mc13xxx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/mc13xxx.h b/drivers/regulator/mc13xxx.h
index a602b08d4c9e..ba7eff1070bd 100644
--- a/drivers/regulator/mc13xxx.h
+++ b/drivers/regulator/mc13xxx.h
@@ -53,8 +53,8 @@ static inline struct mc13xxx_regulator_init_data *mc13xxx_parse_regulators_dt(
}
#endif
-extern struct regulator_ops mc13xxx_regulator_ops;
-extern struct regulator_ops mc13xxx_fixed_regulator_ops;
+extern const struct regulator_ops mc13xxx_regulator_ops;
+extern const struct regulator_ops mc13xxx_fixed_regulator_ops;
#define MC13xxx_DEFINE(prefix, _name, _node, _reg, _vsel_reg, _voltages, _ops) \
[prefix ## _name] = { \