From: Axel Lin Date: Mon, 15 Apr 2013 08:36:51 +0000 (+0800) Subject: regulator: ab8500: Fix voltage_shift setting for AB8540_LDO_DMIC X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=375dc9c141b4d62b92bb171817039ef764c61d9f;p=linux-beck.git 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 Acked-by: Bengt Jonsson Signed-off-by: Mark Brown --- 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, }, /*