aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pv88090-regulator.c
diff options
context:
space:
mode:
authorJames Ban <James.Ban.opensource@diasemi.com>2016-03-07 16:08:20 +0900
committerMark Brown <broonie@kernel.org>2016-03-07 14:39:03 +0700
commit623f7b933968b159081559baca56d98ed4b60e33 (patch)
tree579362a5f3e76ca3add697b9708013941ad70724 /drivers/regulator/pv88090-regulator.c
parentLinux 4.5-rc1 (diff)
downloadlinux-dev-623f7b933968b159081559baca56d98ed4b60e33.tar.xz
linux-dev-623f7b933968b159081559baca56d98ed4b60e33.zip
regulator: pv88090: fix incorrect clear of event register
This is a patch to fix incorrect clear of event register. Signed-off-by: James Ban <James.Ban.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/pv88090-regulator.c')
-rw-r--r--drivers/regulator/pv88090-regulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator/pv88090-regulator.c
index ac15f31b5fe0..0057c6740d6f 100644
--- a/drivers/regulator/pv88090-regulator.c
+++ b/drivers/regulator/pv88090-regulator.c
@@ -283,8 +283,8 @@ static irqreturn_t pv88090_irq_handler(int irq, void *data)
}
}
- err = regmap_update_bits(chip->regmap, PV88090_REG_EVENT_A,
- PV88090_E_VDD_FLT, PV88090_E_VDD_FLT);
+ err = regmap_write(chip->regmap, PV88090_REG_EVENT_A,
+ PV88090_E_VDD_FLT);
if (err < 0)
goto error_i2c;
@@ -300,8 +300,8 @@ static irqreturn_t pv88090_irq_handler(int irq, void *data)
}
}
- err = regmap_update_bits(chip->regmap, PV88090_REG_EVENT_A,
- PV88090_E_OVER_TEMP, PV88090_E_OVER_TEMP);
+ err = regmap_write(chip->regmap, PV88090_REG_EVENT_A,
+ PV88090_E_OVER_TEMP);
if (err < 0)
goto error_i2c;