]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit155036754682bc92a81506891284bae001fa7e19
tree03f9c52dcc291b1050de8da71f156d18d844cb6d
parent908b7569f5d5fb6400d5c6af1804632909f65b08
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