Skip to content

Commit 4e7089f

Browse files
James Banbroonie
authored andcommitted
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>
1 parent 7d1311b commit 4e7089f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/regulator/da9211-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static int da9211_regulator_init(struct da9211 *chip)
282282

283283
if (chip->chip_irq != 0) {
284284
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);
286286
if (ret < 0) {
287287
dev_err(chip->dev,
288288
"Failed to update mask reg: %d\n", ret);

0 commit comments

Comments
 (0)