diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-08 14:09:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-10 13:22:15 +0200 |
commit | 784816d46aae28f84a3ec5461b6cf69b6f02d62a (patch) | |
tree | 029649c30bd09e4ba9eaf67e17c5a384c1ae6ae6 /drivers/regulator/hi655x-regulator.c | |
parent | regulator: s2mpa01: Convert to use simplified DT parsing (diff) | |
download | linux-784816d46aae28f84a3ec5461b6cf69b6f02d62a.tar.xz linux-784816d46aae28f84a3ec5461b6cf69b6f02d62a.zip |
regulator: hi655x: Constify regulators array
The regulators array should 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/hi655x-regulator.c')
-rw-r--r-- | drivers/regulator/hi655x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/hi655x-regulator.c b/drivers/regulator/hi655x-regulator.c index bba24a6fdb1e..460ae70d8b04 100644 --- a/drivers/regulator/hi655x-regulator.c +++ b/drivers/regulator/hi655x-regulator.c @@ -158,7 +158,7 @@ static const struct regulator_ops hi655x_ldo_linear_ops = { .ctrl_mask = cmask, \ } -static struct hi655x_regulator regulators[] = { +static const struct hi655x_regulator regulators[] = { HI655X_LDO_LINEAR(LDO2, 0x72, 0x07, 0x29, 0x2a, 0x2b, 0x01, 2500000, 8, 100000), HI655X_LDO(LDO7, 0x78, 0x07, 0x29, 0x2a, 0x2b, 0x06, ldo7_voltages), |