summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-05-06 09:17:26 +0300
committerMark Brown <broonie@kernel.org>2020-05-06 17:16:59 +0300
commitaab5fd7a1b7b931487694b527322f48f423701c7 (patch)
tree3551a75881b5af068842dbb03880f9ffb066d012 /drivers/regulator
parentf0ca7b249c7305c9b9781f7dbcb8d294e0086808 (diff)
downloadlinux-aab5fd7a1b7b931487694b527322f48f423701c7.tar.xz
regulator: db8500-prcmu: Use true,false for bool variable
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/db8500-prcmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/db8500-prcmu.c b/drivers/regulator/db8500-prcmu.c
index 88a2dcb9fe8a..0ce6ec4933af 100644
--- 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;
}