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)
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

index b81ff04..0a62ef9 100644 (file)
@@ -1729,6 +1729,7 @@ static struct ab8500_regulator_info
                .voltage_bank           = 0x03,
                .voltage_reg            = 0x83,
                .voltage_mask           = 0xc0,
+               .voltage_shift          = 6,
        },
 
        /*