]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: core: fix application of sizeof to pointer
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 5 Jan 2022 02:37:00 +0000 (10:37 +0800)
committerSebastian Reichel <sre@kernel.org>
Tue, 1 Feb 2022 12:13:44 +0000 (13:13 +0100)
commit10b7722b1ccd2ad0eb485bc6e404797f3d2a668d
tree7ca439280528861d9a8a2c51b15304fec40fb840
parent203350f70b7d51e21d844a65e612e8cc5496fa99
power: supply: core: fix application of sizeof to pointer

The coccinelle check report:
./drivers/power/supply/cw2015_battery.c:692:12-18: ERROR: application of
sizeof to pointer

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: eadb4e6b79a4 ("power: supply_core: Pass pointer to battery info")
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cw2015_battery.c