Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1352579
| From | James Ban <James.Ban.opensource@diasemi.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH V1] regulator: pv88060: fix incorrect clear of event register |
| Date | 2016-03-08 03:50 +0100 |
| Message-ID | <rafSG-34S-27@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: James Ban <James.Ban.opensource@diasemi.com> This is a patch to fix incorrect clear of event register. Signed-off-by: James Ban <James.Ban.opensource@diasemi.com> --- This patch applies against linux-next and next-20160304 drivers/regulator/pv88060-regulator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/pv88060-regulator.c b/drivers/regulator/pv88060-regulator.c index 094376c..c448b72 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) } } - err = regmap_update_bits(chip->regmap, PV88060_REG_EVENT_A, - PV88060_E_VDD_FLT, PV88060_E_VDD_FLT); + err = regmap_write(chip->regmap, PV88060_REG_EVENT_A, + PV88060_E_VDD_FLT); if (err < 0) goto error_i2c; @@ -302,8 +302,8 @@ static irqreturn_t pv88060_irq_handler(int irq, void *data) } } - err = regmap_update_bits(chip->regmap, PV88060_REG_EVENT_A, - PV88060_E_OVER_TEMP, PV88060_E_OVER_TEMP); + err = regmap_write(chip->regmap, PV88060_REG_EVENT_A, + PV88060_E_OVER_TEMP); if (err < 0) goto error_i2c; -- end-of-patch for PATCH V1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH V1] regulator: pv88060: fix incorrect clear of event register James Ban <James.Ban.opensource@diasemi.com> - 2016-03-08 03:50 +0100
csiph-web