mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
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>
This commit is contained in:
parent
7d1311b93e
commit
4e7089f3f7
@ -282,7 +282,7 @@ static int da9211_regulator_init(struct da9211 *chip)
|
||||
|
||||
if (chip->chip_irq != 0) {
|
||||
ret = regmap_update_bits(chip->regmap,
|
||||
DA9211_REG_MASK_B, DA9211_M_OV_CURR_A << i, 1);
|
||||
DA9211_REG_MASK_B, DA9211_M_OV_CURR_A << i, 0);
|
||||
if (ret < 0) {
|
||||
dev_err(chip->dev,
|
||||
"Failed to update mask reg: %d\n", ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user