aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ban <james.ban.opensource@diasemi.com>2014-09-29 03:59:20 -0400
committerMark Brown <broonie@kernel.org>2014-09-30 08:46:46 -0400
commit4e7089f3f7ab3edf177bbdb84107aff3193e855e (patch)
treec6b52dfee1b0aa21199af0dd8efce647d31f4f07
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
regulator: da9211: Fix a bug in update of mask bit
This is a patch for fixing a bug about mask bit operation. Signed-off-by: James Ban <james.ban.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/da9211-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index 1482adafa1ad..05f879a5d24e 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -282,7 +282,7 @@ static int da9211_regulator_init(struct da9211 *chip)
282 282
283 if (chip->chip_irq != 0) { 283 if (chip->chip_irq != 0) {
284 ret = regmap_update_bits(chip->regmap, 284 ret = regmap_update_bits(chip->regmap,
285 DA9211_REG_MASK_B, DA9211_M_OV_CURR_A << i, 1); 285 DA9211_REG_MASK_B, DA9211_M_OV_CURR_A << i, 0);
286 if (ret < 0) { 286 if (ret < 0) {
287 dev_err(chip->dev, 287 dev_err(chip->dev,
288 "Failed to update mask reg: %d\n", ret); 288 "Failed to update mask reg: %d\n", ret);