power: supply: core: Use true and false for bool variable
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 9 Feb 2021 09:58:43 +0000 (17:58 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 5 Apr 2021 10:12:18 +0000 (12:12 +0200)
commit25faa935f9e0bd5aba34a820defb982d43bb4a77
tree13cbfc9708a480f0f91b8c1efc1386309ad0ec14
parent570b7c0ea20c0156411394bc215114f7b1dc18ff
power: supply: core: Use true and false for bool variable

Fix the following coccicheck warning:

./include/linux/power_supply.h:507:9-10: WARNING: return of 0/1 in
function 'power_supply_is_watt_property' with return type bool.

./include/linux/power_supply.h:479:9-10: WARNING: return of 0/1 in
function 'power_supply_is_amp_property' with return type bool.

Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/power_supply.h