projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a495b
)
regulator: lp873x: Constify lp873x_buck_ramp_delay array
author
Axel Lin
<axel.lin@ingics.com>
Thu, 21 Feb 2019 15:01:11 +0000
(23:01 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 21 Feb 2019 18:53:21 +0000
(18:53 +0000)
The lp873x_buck_ramp_delay should never change, make it const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp873x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/lp873x-regulator.c
b/drivers/regulator/lp873x-regulator.c
index 2ec5e833c37954e32796d7461d15926e87fae593..70651fec8fd95fba939a6049ec88e6e2e6849d4e 100644
(file)
--- a/
drivers/regulator/lp873x-regulator.c
+++ b/
drivers/regulator/lp873x-regulator.c
@@
-61,7
+61,7
@@
static const struct regulator_linear_range ldo0_ldo1_ranges[] = {
REGULATOR_LINEAR_RANGE(800000, 0x0, 0x19, 100000),
};
-static unsigned int lp873x_buck_ramp_delay[] = {
+static
const
unsigned int lp873x_buck_ramp_delay[] = {
30000, 15000, 10000, 7500, 3800, 1900, 940, 470
};