projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db5dd5
)
regulator: bd9576: Fix testing wrong flag in check_temp_flag_mismatch
author
Axel Lin
<axel.lin@ingics.com>
Wed, 23 Jun 2021 15:34:43 +0000
(23:34 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 1 Jul 2021 13:50:30 +0000
(14:50 +0100)
Fix trivial copy-paste typo.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link:
https://lore.kernel.org/r/20210623153443.623856-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd9576-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/bd9576-regulator.c
b/drivers/regulator/bd9576-regulator.c
index
e16c372
..
aa42da4
100644
(file)
--- a/
drivers/regulator/bd9576-regulator.c
+++ b/
drivers/regulator/bd9576-regulator.c
@@
-294,9
+294,9
@@
static bool check_temp_flag_mismatch(struct regulator_dev *rdev, int severity,
struct bd957x_regulator_data *r)
{
if ((severity == REGULATOR_SEVERITY_ERR &&
- r->
ovd
_notif != REGULATOR_EVENT_OVER_TEMP) ||
+ r->
temp
_notif != REGULATOR_EVENT_OVER_TEMP) ||
(severity == REGULATOR_SEVERITY_WARN &&
- r->
ovd
_notif != REGULATOR_EVENT_OVER_TEMP_WARN)) {
+ r->
temp
_notif != REGULATOR_EVENT_OVER_TEMP_WARN)) {
dev_warn(rdev_get_dev(rdev),
"Can't support both thermal WARN and ERR\n");
if (severity == REGULATOR_SEVERITY_WARN)