[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1589195577-8723-1-git-send-email-zou_wei@huawei.com>
Date: Mon, 11 May 2020 19:12:57 +0800
From: Samuel Zou <zou_wei@...wei.com>
To: <sre@...nel.org>
CC: <andriy.shevchenko@...ux.intel.com>,
<matti.vaittinen@...rohmeurope.com>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Samuel Zou <zou_wei@...wei.com>
Subject: [PATCH -next] 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@...wei.com>
Signed-off-by: Samuel Zou <zou_wei@...wei.com>
---
drivers/power/supply/bd99954-charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c
index 3da39c7..ffd8bfa 100644
--- a/drivers/power/supply/bd99954-charger.c
+++ b/drivers/power/supply/bd99954-charger.c
@@ -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);
}
--
2.6.2
Powered by blists - more mailing lists