]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: ab8500: Fix voltage_shift setting for AB8540_LDO_DMIC
authorAxel Lin <axel.lin@ingics.com>
Mon, 15 Apr 2013 08:36:51 +0000 (16:36 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 15:54:25 +0000 (16:54 +0100)
commit375dc9c141b4d62b92bb171817039ef764c61d9f
tree3f079e10e4d4eebca71ae25cba5297dd977d2abc
parente4fc9d6d9fea5a1b05dcf5b60984bd6a19cc73d6
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>
drivers/regulator/ab8500.c