summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ab8500-ext.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-04-12 16:06:56 +0200
committerMark Brown <broonie@kernel.org>2019-04-15 10:43:31 +0200
commit8e5be4f7e142daa47303ee8238b891833024e7df (patch)
tree1d3711901dc00f76a95d2f620989f6068d37a946 /drivers/regulator/ab8500-ext.c
parentregulator: ab8500-ext: Convert to use simplified DT parsing (diff)
downloadlinux-8e5be4f7e142daa47303ee8238b891833024e7df.tar.xz
linux-8e5be4f7e142daa47303ee8238b891833024e7df.zip
regulator: ab8500-ext: Constify ab8500_ext_regulator_ops
ab8500_ext_regulator_ops never need to be modified, make it const so compiler can put it to .rodata. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/ab8500-ext.c')
-rw-r--r--drivers/regulator/ab8500-ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c
index f232a7a90fd5..95704446d89e 100644
--- a/drivers/regulator/ab8500-ext.c
+++ b/drivers/regulator/ab8500-ext.c
@@ -718,7 +718,7 @@ static int ab8500_ext_list_voltage(struct regulator_dev *rdev,
return -EINVAL;
}
-static struct regulator_ops ab8500_ext_regulator_ops = {
+static const struct regulator_ops ab8500_ext_regulator_ops = {
.enable = ab8500_ext_regulator_enable,
.disable = ab8500_ext_regulator_disable,
.is_enabled = ab8500_ext_regulator_is_enabled,