diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-12-26 11:56:37 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-08 11:05:26 +0000 |
commit | cad877ef0af8d18aae88bb7d0f30f747f003fd0f (patch) | |
tree | a7fca3c3da1f1251311e7276f1483bb035ea645f /drivers/regulator/lp8755.c | |
parent | a1a41ab4e92a42d380286a6aadb1026a2b352801 (diff) | |
download | op-kernel-dev-cad877ef0af8d18aae88bb7d0f30f747f003fd0f.zip op-kernel-dev-cad877ef0af8d18aae88bb7d0f30f747f003fd0f.tar.gz |
regulator: lp8755: Fix mask for pchip->mphase
According to the datasheet, it has 9 multi-phase mode from 0 to 8 and it takes
4 bits in the register.
The mask for pchip->mphase should be 0x0F.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/lp8755.c')
-rw-r--r-- | drivers/regulator/lp8755.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c index 06a82e2..decb3ad 100644 --- a/drivers/regulator/lp8755.c +++ b/drivers/regulator/lp8755.c @@ -301,7 +301,7 @@ static int lp8755_init_data(struct lp8755_chip *pchip) ret = lp8755_read(pchip, 0x3D, ®val); if (ret < 0) goto out_i2c_error; - pchip->mphase = regval & 0x07; + pchip->mphase = regval & 0x0F; /* set default data based on multi-phase config */ for (icnt = 0; icnt < mphase_buck[pchip->mphase].nreg; icnt++) { |