diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-15 04:36:51 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-15 11:54:25 -0400 |
commit | 375dc9c141b4d62b92bb171817039ef764c61d9f (patch) | |
tree | 3f079e10e4d4eebca71ae25cba5297dd977d2abc /drivers/regulator/ab8500.c | |
parent | e4fc9d6d9fea5a1b05dcf5b60984bd6a19cc73d6 (diff) |
regulator: ab8500: Fix voltage_shift setting for AB8540_LDO_DMIC
The voltage_mask is 0xc0, thus we need to set voltage_shift = 6 to get correct
selector in get_voltage_sel and set_voltage_sel.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/ab8500.c')
-rw-r--r-- | drivers/regulator/ab8500.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index b81ff04749c3..0a62ef942cfb 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
@@ -1729,6 +1729,7 @@ static struct ab8500_regulator_info | |||
1729 | .voltage_bank = 0x03, | 1729 | .voltage_bank = 0x03, |
1730 | .voltage_reg = 0x83, | 1730 | .voltage_reg = 0x83, |
1731 | .voltage_mask = 0xc0, | 1731 | .voltage_mask = 0xc0, |
1732 | .voltage_shift = 6, | ||
1732 | }, | 1733 | }, |
1733 | 1734 | ||
1734 | /* | 1735 | /* |