diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-03-28 13:02:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-01 10:17:56 +0200 |
commit | 646e268e66ec8664317ae677a3b774b7dc812c84 (patch) | |
tree | ce48947fa23db71b9547c7025cd04f9ebe525174 /drivers/regulator/tps6507x-regulator.c | |
parent | regulator: vctrl: Remove unneeded continue statement (diff) | |
download | linux-646e268e66ec8664317ae677a3b774b7dc812c84.tar.xz linux-646e268e66ec8664317ae677a3b774b7dc812c84.zip |
regulator: tps6507x: Constify tps6507x_pmic_ops
The tps6507x_pmic_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/tps6507x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6507x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index c179a3a221af..2b3064faaaf3 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c @@ -349,7 +349,7 @@ static int tps6507x_pmic_set_voltage_sel(struct regulator_dev *dev, return tps6507x_pmic_reg_write(tps, reg, data); } -static struct regulator_ops tps6507x_pmic_ops = { +static const struct regulator_ops tps6507x_pmic_ops = { .is_enabled = tps6507x_pmic_is_enabled, .enable = tps6507x_pmic_enable, .disable = tps6507x_pmic_disable, |