]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
power: supply: surface-charger: Make symbol 'surface_ac_pm_ops' static
authorQiheng Lin <linqiheng@huawei.com>
Sat, 10 Apr 2021 04:12:49 +0000 (12:12 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 12 Apr 2021 19:20:25 +0000 (21:20 +0200)
commita4d5ed3b54f0c66b331d81bebb2ba4a92abc43a3
treee9d924d3416c4fd6a85bd9e91f5f8529a73bb5fa
parent5ea2edd67a0467920e01c4909194e720d437fa26
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>
drivers/power/supply/surface_charger.c