diff options
author | James Ban <James.Ban.opensource@diasemi.com> | 2016-03-07 21:37:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-08 02:17:54 -0500 |
commit | a7c2ded6962da1ee289c37a988b73d313388c803 (patch) | |
tree | 7a378271503febbf5f5966b3365fd10f0aa62ee1 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
regulator: pv88060: 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>
-rw-r--r-- | drivers/regulator/pv88060-regulator.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/pv88060-regulator.c b/drivers/regulator/pv88060-regulator.c index 094376c8de4b..c448b727f5f8 100644 --- a/drivers/regulator/pv88060-regulator.c +++ b/drivers/regulator/pv88060-regulator.c | |||
@@ -285,8 +285,8 @@ static irqreturn_t pv88060_irq_handler(int irq, void *data) | |||
285 | } | 285 | } |
286 | } | 286 | } |
287 | 287 | ||
288 | err = regmap_update_bits(chip->regmap, PV88060_REG_EVENT_A, | 288 | err = regmap_write(chip->regmap, PV88060_REG_EVENT_A, |
289 | PV88060_E_VDD_FLT, PV88060_E_VDD_FLT); | 289 | PV88060_E_VDD_FLT); |
290 | if (err < 0) | 290 | if (err < 0) |
291 | goto error_i2c; | 291 | goto error_i2c; |
292 | 292 | ||
@@ -302,8 +302,8 @@ static irqreturn_t pv88060_irq_handler(int irq, void *data) | |||
302 | } | 302 | } |
303 | } | 303 | } |
304 | 304 | ||
305 | err = regmap_update_bits(chip->regmap, PV88060_REG_EVENT_A, | 305 | err = regmap_write(chip->regmap, PV88060_REG_EVENT_A, |
306 | PV88060_E_OVER_TEMP, PV88060_E_OVER_TEMP); | 306 | PV88060_E_OVER_TEMP); |
307 | if (err < 0) | 307 | if (err < 0) |
308 | goto error_i2c; | 308 | goto error_i2c; |
309 | 309 | ||