regulator: lp8752: set dcdc mode as auto mode
authorElaine Zhang <zhangqing@rock-chips.com>
Mon, 25 Jul 2016 01:50:12 +0000 (09:50 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 25 Jul 2016 02:40:24 +0000 (10:40 +0800)
lp8752 static power is too high when in foce pwm mode,
change it's mode to auto.

Change-Id: I6b1342cc8b63d240d90194b52f5926501ea7babf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/regulator/lp8752.c

index 0062dee31a59b09f5120745a724005046768a23f..ea06d755f44d9616b6a54ca7ffcc470f6504ca94 100644 (file)
@@ -260,10 +260,10 @@ static int lp8752_probe(struct i2c_client *client,
 
        ret = regmap_update_bits(pchip->regmap,
                                 LP8752_CTRL_BUCK0,
-                                (1 << 0), 0x1);
+                                (1 << 0), 0);
        ret = regmap_update_bits(pchip->regmap,
                                 LP8752_CTRL_BUCK2,
-                                (1 << 0), 0x1);
+                                (1 << 0), 0);
 
        if (!pdata) {
                pchip->pdata = devm_kzalloc(pchip->dev,