projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ca7b2
)
regulator: db8500-prcmu: Use true,false for bool variable
author
Jason Yan
<yanaijie@huawei.com>
Wed, 6 May 2020 06:17:26 +0000
(14:17 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 6 May 2020 14:16:59 +0000
(15:16 +0100)
Fix the following coccicheck warning:
drivers/regulator/db8500-prcmu.c:184:1-17: WARNING: Assignment of 0/1 to
bool variable
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link:
https://lore.kernel.org/r/20200506061726.19289-1-yanaijie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/db8500-prcmu.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/db8500-prcmu.c
b/drivers/regulator/db8500-prcmu.c
index
88a2dcb
..
0ce6ec4
100644
(file)
--- a/
drivers/regulator/db8500-prcmu.c
+++ b/
drivers/regulator/db8500-prcmu.c
@@
-181,7
+181,7
@@
static int db8500_regulator_switch_disable(struct regulator_dev *rdev)
goto out;
}
- info->is_enabled =
0
;
+ info->is_enabled =
false
;
out:
return ret;
}