summaryrefslogtreecommitdiff
path: root/drivers/power/supply/surface_charger.c
diff options
context:
space:
mode:
authorQiheng Lin <linqiheng@huawei.com>2021-04-10 12:12:49 +0800
committerSebastian Reichel <sre@kernel.org>2021-04-12 21:20:25 +0200
commita4d5ed3b54f0c66b331d81bebb2ba4a92abc43a3 (patch)
treee9d924d3416c4fd6a85bd9e91f5f8529a73bb5fa /drivers/power/supply/surface_charger.c
parent5ea2edd67a0467920e01c4909194e720d437fa26 (diff)
power: supply: surface-charger: Make symbol 'surface_ac_pm_ops' static
The sparse tool complains as follows: drivers/power/supply/surface_charger.c:229:1: warning: symbol 'surface_ac_pm_ops' was not declared. Should it be static? This symbol is not used outside of surface_charger.c, so this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Qiheng Lin <linqiheng@huawei.com> Acked-by: Maximilian Luz <luzmaximilian@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/surface_charger.c')
-rw-r--r--drivers/power/supply/surface_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/surface_charger.c b/drivers/power/supply/surface_charger.c
index c2dd7e604d14..81a5b79822c9 100644
--- a/drivers/power/supply/surface_charger.c
+++ b/drivers/power/supply/surface_charger.c
@@ -226,7 +226,7 @@ static int __maybe_unused surface_ac_resume(struct device *dev)
{
return spwr_ac_recheck(dev_get_drvdata(dev));
}
-SIMPLE_DEV_PM_OPS(surface_ac_pm_ops, NULL, surface_ac_resume);
+static SIMPLE_DEV_PM_OPS(surface_ac_pm_ops, NULL, surface_ac_resume);
static int surface_ac_probe(struct ssam_device *sdev)
{