mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V1] regulator: DA9211 : Fix a bug in update of mask bit
@ 2014-09-29  7:59 James Ban
  2014-09-30 12:45 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: James Ban @ 2014-09-29  7:59 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Support Opensource, LKML; +Cc: David Dajun Chen

This is a patch for fixing a bug about mask bit operation.

Signed-off-by: James Ban <james.ban.opensource@diasemi.com>
---

This patch is relative to linux-next repository tag next-20140926.

 drivers/regulator/da9211-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index f47adf3..c78d210 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -376,7 +376,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);
-- 
end-of-patch for regulator: DA9211 : Fix a bug in update of mask bit V1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-01 11:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29  7:59 [PATCH V1] regulator: DA9211 : Fix a bug in update of mask bit James Ban
2014-09-30 12:45 ` Mark Brown
2014-10-01  1:02   ` Opensource [James Seong-Won Ban]
2014-10-01 11:45     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®