diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-03-01 22:20:53 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-03-04 00:01:08 +0000 |
commit | e5680c4de3eb3ea5538d11733a91ccef19badd69 (patch) | |
tree | 0b210b791fda0cef6d8a2fd6bb65ea8361103c61 /drivers/regulator/mc13xxx.h | |
parent | ad542a527c9a4d9088da3a0977c7508266229f07 (diff) | |
download | linux-e5680c4de3eb3ea5538d11733a91ccef19badd69.tar.bz2 |
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.h | 4 |
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] = { \ |