projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1311b
)
regulator: da9211: Fix a bug in update of mask bit
author
James Ban
<james.ban.opensource@diasemi.com>
Mon, 29 Sep 2014 07:59:20 +0000
(16:59 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 30 Sep 2014 12:46:46 +0000
(13:46 +0100)
This is a patch for fixing a bug about mask bit operation.
Signed-off-by: James Ban <james.ban.opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9211-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/da9211-regulator.c
b/drivers/regulator/da9211-regulator.c
index 1482adafa1ad43eafa970c53b671b264c1e1a572..05f879a5d24e704f71e1d12820aada5d78a5d317 100644
(file)
--- a/
drivers/regulator/da9211-regulator.c
+++ b/
drivers/regulator/da9211-regulator.c
@@
-282,7
+282,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);