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:
92e963f
)
regulator: pv88060: fix incorrect clear of event register
author
James Ban
<
[email protected]
>
Tue, 8 Mar 2016 02:37:03 +0000
(11:37 +0900)
committer
Mark Brown
<
[email protected]
>
Tue, 8 Mar 2016 07:17:54 +0000
(14:17 +0700)
This is a patch to fix incorrect clear of event register.
Signed-off-by: James Ban <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/pv88060-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pv88060-regulator.c
b/drivers/regulator/pv88060-regulator.c
index 094376c8de4bdb1ae8a5de350d209c267f15a2fd..c448b727f5f81702aa7fb2ad8604abf8338f5f66 100644
(file)
--- 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;