summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorSamuel Zou <zou_wei@huawei.com>2020-05-11 19:12:57 +0800
committerSebastian Reichel <sre@kernel.org>2020-05-28 19:02:59 +0200
commit2e9bcaccef40e81f052e4f228df91feaedd7b26c (patch)
treeaa115a0cd136ce470475f7167e466510988f58d7 /drivers/power
parentfac1cd327b627a0761d10bb93a2b0d0075452ff9 (diff)
downloadlinux-2e9bcaccef40e81f052e4f228df91feaedd7b26c.tar.bz2
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/bd99954-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c
index 3da39c7293e3..ffd8bfa08179 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);
}