projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c61519f
)
regulator: rk808: Fix n_voltages for DCDC4
author
Axel Lin
<axel.lin@ingics.com>
Tue, 2 Sep 2014 00:47:31 +0000
(08:47 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 2 Sep 2014 11:08:05 +0000
(12:08 +0100)
The min_sel is 0, max_sel is 15, so n_voltages should be 16.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rk808-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/rk808-regulator.c
b/drivers/regulator/rk808-regulator.c
index 0d11df131ebac4638ce6892555b5d635d486dd2e..0da8867bdf4c5a0cbb16d8abde88a0cada8cd9a6 100644
(file)
--- a/
drivers/regulator/rk808-regulator.c
+++ b/
drivers/regulator/rk808-regulator.c
@@
-146,7
+146,7
@@
static const struct regulator_desc rk808_reg[] = {
.id = RK808_ID_DCDC4,
.ops = &rk808_reg_ops,
.type = REGULATOR_VOLTAGE,
- .n_voltages = 1
7
,
+ .n_voltages = 1
6
,
.linear_ranges = rk808_buck4_voltage_ranges,
.n_linear_ranges = ARRAY_SIZE(rk808_buck4_voltage_ranges),
.vsel_reg = RK808_BUCK4_ON_VSEL_REG,