projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0677c3e
)
regulator: hi655x: Constify regulators array
author
Axel Lin
<axel.lin@ingics.com>
Mon, 8 Apr 2019 12:09:32 +0000
(20:09 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Apr 2019 11:22:15 +0000
(12:22 +0100)
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>
drivers/regulator/hi655x-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/hi655x-regulator.c
b/drivers/regulator/hi655x-regulator.c
index bba24a6fdb1e11ce7a090947d0bf53428ba69b7c..460ae70d8b043c6ba3b95376af4ba9816d3c3666 100644
(file)
--- 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),