Skip to content

Commit aab5fd7

Browse files
JasonYanHwbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f0ca7b2 commit aab5fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/db8500-prcmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static int db8500_regulator_switch_disable(struct regulator_dev *rdev)
181181
goto out;
182182
}
183183

184-
info->is_enabled = 0;
184+
info->is_enabled = false;
185185
out:
186186
return ret;
187187
}

0 commit comments

Comments
 (0)