mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 13:43:55 +08:00
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>
This commit is contained in:
parent
5ea2edd67a
commit
a4d5ed3b54
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user