diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-09-01 20:47:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-02 07:08:05 -0400 |
commit | 5a82067f013fb4f5083fabf4d28f4d1bbada8734 (patch) | |
tree | 447b8a4585add978ef624ab86c1d87e8faff1cce | |
parent | c61519fd9abb1b520bcbe2eb21cf161d4d1b9eec (diff) |
regulator: rk808: Fix n_voltages for DCDC4
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>
-rw-r--r-- | drivers/regulator/rk808-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 0d11df131eba..0da8867bdf4c 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c | |||
@@ -146,7 +146,7 @@ static const struct regulator_desc rk808_reg[] = { | |||
146 | .id = RK808_ID_DCDC4, | 146 | .id = RK808_ID_DCDC4, |
147 | .ops = &rk808_reg_ops, | 147 | .ops = &rk808_reg_ops, |
148 | .type = REGULATOR_VOLTAGE, | 148 | .type = REGULATOR_VOLTAGE, |
149 | .n_voltages = 17, | 149 | .n_voltages = 16, |
150 | .linear_ranges = rk808_buck4_voltage_ranges, | 150 | .linear_ranges = rk808_buck4_voltage_ranges, |
151 | .n_linear_ranges = ARRAY_SIZE(rk808_buck4_voltage_ranges), | 151 | .n_linear_ranges = ARRAY_SIZE(rk808_buck4_voltage_ranges), |
152 | .vsel_reg = RK808_BUCK4_ON_VSEL_REG, | 152 | .vsel_reg = RK808_BUCK4_ON_VSEL_REG, |