diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-12 22:06:56 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-15 09:43:31 +0100 |
commit | 8e5be4f7e142daa47303ee8238b891833024e7df (patch) | |
tree | 1d3711901dc00f76a95d2f620989f6068d37a946 /drivers/regulator | |
parent | 48cb9737edff831a6cd96bad7e9f9f612a7f3a9e (diff) |
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')
-rw-r--r-- | drivers/regulator/ab8500-ext.c | 2 |
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, |