Commit 41fff61d authored by Wei Yongjun's avatar Wei Yongjun Committed by Hans de Goede

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: 797e7856 ("platform/surface: aggregator_registry: Add base device hub")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210309131500.1885772-1-weiyongjun1@huawei.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent f614a1e2
......@@ -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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment