summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mc13xxx-regulator-core.c
diff options
context:
space:
mode:
authorAxel Lin2019-03-01 15:20:53 +0100
committerMark Brown2019-03-04 01:01:08 +0100
commite5680c4de3eb3ea5538d11733a91ccef19badd69 (patch)
tree0b210b791fda0cef6d8a2fd6bb65ea8361103c61 /drivers/regulator/mc13xxx-regulator-core.c
parentregulator: palmas: Constify palmas_smps_ramp_delay array (diff)
downloadkernel-qcow2-linux-e5680c4de3eb3ea5538d11733a91ccef19badd69.tar.gz
kernel-qcow2-linux-e5680c4de3eb3ea5538d11733a91ccef19badd69.tar.xz
kernel-qcow2-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-regulator-core.c')
-rw-r--r--drivers/regulator/mc13xxx-regulator-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/mc13xxx-regulator-core.c b/drivers/regulator/mc13xxx-regulator-core.c
index 2243138d8a58..8ff19150ca92 100644
--- a/drivers/regulator/mc13xxx-regulator-core.c
+++ b/drivers/regulator/mc13xxx-regulator-core.c
@@ -99,7 +99,7 @@ static int mc13xxx_regulator_get_voltage(struct regulator_dev *rdev)
return rdev->desc->volt_table[val];
}
-struct regulator_ops mc13xxx_regulator_ops = {
+const struct regulator_ops mc13xxx_regulator_ops = {
.enable = mc13xxx_regulator_enable,
.disable = mc13xxx_regulator_disable,
.is_enabled = mc13xxx_regulator_is_enabled,
@@ -127,7 +127,7 @@ int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV,
}
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage);
-struct regulator_ops mc13xxx_fixed_regulator_ops = {
+const struct regulator_ops mc13xxx_fixed_regulator_ops = {
.enable = mc13xxx_regulator_enable,
.disable = mc13xxx_regulator_disable,
.is_enabled = mc13xxx_regulator_is_enabled,