Re: [PATCH -next] power: supply_core: fix application of sizeof to pointer

From: Linus Walleij
Date: Tue Jan 11 2022 - 19:42:21 EST


On Wed, Jan 5, 2022 at 3:37 AM Yang Li <yang.lee@xxxxxxxxxxxxxxxxx> wrote:

> The coccinelle check report:
> ./drivers/power/supply/cw2015_battery.c:692:12-18: ERROR: application of
> sizeof to pointer
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Fixes: 25fd330370ac ("power: supply_core: Pass pointer to battery info")
> Signed-off-by: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Thanks for finding this!

Yours,
Linus Walleij