regulator: db8500-prcmu: Use true,false for bool variable
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 06:17:26 +0000 (14:17 +0800)
committerMark 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

index 88a2dcb..0ce6ec4 100644 (file)
@@ -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;
 }