Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1351339 > unrolled thread

[PATCH V1] regulator: pv88090: fix incorrect clear of event register

Started byJames Ban <James.Ban.opensource@diasemi.com>
First post2016-03-07 08:30 +0100
Last post2016-03-07 08:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH V1] regulator: pv88090: fix incorrect clear of event register James Ban <James.Ban.opensource@diasemi.com> - 2016-03-07 08:30 +0100

#1351339 — [PATCH V1] regulator: pv88090: fix incorrect clear of event register

FromJames Ban <James.Ban.opensource@diasemi.com>
Date2016-03-07 08:30 +0100
Subject[PATCH V1] regulator: pv88090: fix incorrect clear of event register
Message-ID<r9XM6-8dk-7@gated-at.bofh.it>
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/pv88090-regulator.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator/pv88090-regulator.c
index ac15f31..0057c67 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;
 
-- 
end-of-patch for PATCH V1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web