Skip to content

Commit

Permalink
regulator: db8500-prcmu: Use true,false for bool variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Yan authored and Mark Brown committed May 6, 2020
1 parent f0ca7b2 commit aab5fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aab5fd7

Please sign in to comment.