power: supply: Make bd9995x_chip_reset static
authorSamuel Zou <zou_wei@huawei.com>
Mon, 11 May 2020 11:12:57 +0000 (19:12 +0800)
committerSebastian Reichel <sre@kernel.org>
Thu, 28 May 2020 17:02:59 +0000 (19:02 +0200)
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>
drivers/power/supply/bd99954-charger.c

index 3da39c7293e36b2af384dfabd01e797ca157dcfb..ffd8bfa08179c1ed7886c0c038577c883c60e7b9 100644 (file)
@@ -1025,7 +1025,7 @@ static int bd9995x_fw_probe(struct bd9995x_device *bd)
        return 0;
 }
 
-void bd9995x_chip_reset(void *bd)
+static void bd9995x_chip_reset(void *bd)
 {
        __bd9995x_chip_reset(bd);
 }