summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ab8500.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-04-15 16:36:51 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-15 16:54:25 +0100
commit375dc9c141b4d62b92bb171817039ef764c61d9f (patch)
tree3f079e10e4d4eebca71ae25cba5297dd977d2abc /drivers/regulator/ab8500.c
parente4fc9d6d9fea5a1b05dcf5b60984bd6a19cc73d6 (diff)
downloadblackbird-op-linux-375dc9c141b4d62b92bb171817039ef764c61d9f.tar.gz
blackbird-op-linux-375dc9c141b4d62b92bb171817039ef764c61d9f.zip
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.c1
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
.voltage_bank = 0x03,
.voltage_reg = 0x83,
.voltage_mask = 0xc0,
+ .voltage_shift = 6,
},
/*
OpenPOWER on IntegriCloud