power: supply: surface-battery: Make some symbols static
authorQiheng Lin <linqiheng@huawei.com>
Sat, 10 Apr 2021 04:12:46 +0000 (12:12 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 12 Apr 2021 19:19:42 +0000 (21:19 +0200)
commit5ea2edd67a0467920e01c4909194e720d437fa26
tree03f9c52dcc291b1050de8da71f156d18d844cb6d
parente318c3c2ae7d64ae47467044523bd3e2da5c5ce6
power: supply: surface-battery: Make some symbols static

The sparse tool complains as follows:

drivers/power/supply/surface_battery.c:700:1: warning:
 symbol 'dev_attr_alarm' was not declared. Should it be static?
drivers/power/supply/surface_battery.c:805:1: warning:
 symbol 'surface_battery_pm_ops' was not declared. Should it be static?

This symbol is not used outside of surface_battery.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_battery.c