power: supply: bq27xxx: fix NULL vs 0 warnings
authorBen Dooks <ben-linux@fluff.org>
Thu, 21 Jul 2022 21:01:20 +0000 (22:01 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 11 Sep 2022 13:04:59 +0000 (15:04 +0200)
commitf52c4d5f0bb486bc515b5f8a56130aea69fb29db
tree6b68f90f174444cc775b6b726fb6f5d376efdb60
parent569581a21ff57f43dbe900b2f578c0ec3b0018ba
power: supply: bq27xxx: fix NULL vs 0 warnings

The driver has a lot of sparse warnings for using 0 as a NULL
pointer when NULL would be appropriate. Change the 0 values
to NULL to fix the warnings, some of which are shown here:

drivers/power/supply/bq27xxx_battery.c:984:23: warning: Using plain integer as NULL pointer
drivers/power/supply/bq27xxx_battery.c:985:23: warning: Using plain integer as NULL pointer
drivers/power/supply/bq27xxx_battery.c:986:23: warning: Using plain integer as NULL pointer
drivers/power/supply/bq27xxx_battery.c:987:23: warning: Using plain integer as NULL pointer
drivers/power/supply/bq27xxx_battery.c:988:23: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq27xxx_battery.c