platform/surface: aggregator_registry: Make symbol 'ssam_base_hub_group' static

The sparse tool complains as follows:

drivers/platform/surface/surface_aggregator_registry.c:355:30: warning:
 symbol 'ssam_base_hub_group' was not declared. Should it be static?

This symbol is not used outside of surface_aggregator_registry.c, so this
commit marks it static.

Fixes: 797e785646 ("platform/surface: aggregator_registry: Add base device hub")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210309131500.1885772-1-weiyongjun1@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Wei Yongjun 2021-03-09 13:15:00 +00:00 committed by Hans de Goede
parent f614a1e23a
commit 41fff61d99

View File

@ -352,7 +352,7 @@ static struct attribute *ssam_base_hub_attrs[] = {
NULL,
};
const struct attribute_group ssam_base_hub_group = {
static const struct attribute_group ssam_base_hub_group = {
.attrs = ssam_base_hub_attrs,
};