summaryrefslogtreecommitdiff
path: root/drivers/regulator/88pm800.c
diff options
context:
space:
mode:
authorYi Zhang <yizhang@marvell.com>2015-07-09 18:11:31 +0530
committerMark Brown <broonie@kernel.org>2015-07-09 20:04:25 +0100
commit322dfa6402ec08da1ca182ac0061a1cf2c5c3101 (patch)
tree93e51d65ac08653eb710fbf0535f56eabb38fc18 /drivers/regulator/88pm800.c
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff)
downloadlwn-322dfa6402ec08da1ca182ac0061a1cf2c5c3101.tar.gz
lwn-322dfa6402ec08da1ca182ac0061a1cf2c5c3101.zip
regulator: 88pm800: fix LDO vsel_mask value
As per datasheet, Except LDO2, all other LDO's use bit [3:0] for VOUT select. Current code uses wrong mask value of 0x1f, So this patch fixes it to use 0xf. Signed-off-by: Yi Zhang <yizhang@marvell.com> [vaibhav.hiremath@linaro.org: Updated changelog with more detailed description] Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/88pm800.c')
-rw-r--r--drivers/regulator/88pm800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c
index 832932bdc977..7fd4f511d78f 100644
--- a/drivers/regulator/88pm800.c
+++ b/drivers/regulator/88pm800.c
@@ -130,7 +130,7 @@ struct pm800_regulators {
.owner = THIS_MODULE, \
.n_voltages = ARRAY_SIZE(ldo_volt_table), \
.vsel_reg = PM800_##vreg##_VOUT, \
- .vsel_mask = 0x1f, \
+ .vsel_mask = 0xf, \
.enable_reg = PM800_##ereg, \
.enable_mask = 1 << (ebit), \
.volt_table = ldo_volt_table, \