Skip to content

Commit

Permalink
regulator: hi655x: Constify regulators array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 10, 2019
1 parent 0677c3e commit 784816d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/hi655x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 784816d

Please sign in to comment.