Commit 4adf9bed authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: Fix mask parameter in da9052_reg_update calls

If the mask parameter is 0, info->activate_bit bit won't be set by
calling da9052_reg_update.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 192cfd58
...@@ -260,8 +260,8 @@ static int da9052_set_ldo5_6_voltage(struct regulator_dev *rdev, ...@@ -260,8 +260,8 @@ static int da9052_set_ldo5_6_voltage(struct regulator_dev *rdev,
* the LDO activate bit to implment the changes on the * the LDO activate bit to implment the changes on the
* LDO output. * LDO output.
*/ */
return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG, 0, return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
info->activate_bit); info->activate_bit, info->activate_bit);
} }
static int da9052_set_dcdc_voltage(struct regulator_dev *rdev, static int da9052_set_dcdc_voltage(struct regulator_dev *rdev,
...@@ -280,8 +280,8 @@ static int da9052_set_dcdc_voltage(struct regulator_dev *rdev, ...@@ -280,8 +280,8 @@ static int da9052_set_dcdc_voltage(struct regulator_dev *rdev,
* the DCDC activate bit to implment the changes on the * the DCDC activate bit to implment the changes on the
* DCDC output. * DCDC output.
*/ */
return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG, 0, return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
info->activate_bit); info->activate_bit, info->activate_bit);
} }
static int da9052_get_regulator_voltage_sel(struct regulator_dev *rdev) static int da9052_get_regulator_voltage_sel(struct regulator_dev *rdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment