Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: Make bd9995x_chip_reset static

Fix the following sparse warning:

drivers/power/supply/bd99954-charger.c:1028:6: warning: symbol 'bd9995x_chip_reset' was not declared.

The bd9995x_chip_reset() has only one call site within bd99954-charger.c
It should be static

Fixes: 0902f8366491 ("power: supply: Support ROHM bd99954 charger")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Samuel Zou and committed by
Sebastian Reichel
2e9bcacc fac1cd32

+1 -1
+1 -1
drivers/power/supply/bd99954-charger.c
··· 1025 1025 return 0; 1026 1026 } 1027 1027 1028 - void bd9995x_chip_reset(void *bd) 1028 + static void bd9995x_chip_reset(void *bd) 1029 1029 { 1030 1030 __bd9995x_chip_reset(bd); 1031 1031 }