Commit 84f669b4 authored by YueHaibing's avatar YueHaibing Committed by Andy Shevchenko

platform/x86: pcengines-apuv2: Make two symbols static

Fix sparse warnings:

drivers/platform/x86/pcengines-apuv2.c:80:27: warning: symbol 'gpios_led_table' was not declared. Should it be static?
drivers/platform/x86/pcengines-apuv2.c:113:27: warning: symbol 'gpios_key_table' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-By: default avatarEnrico Weigelt, metux IT consult <info@metux.net>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 92a74ce3
...@@ -77,7 +77,7 @@ static const struct gpio_led_platform_data apu2_leds_pdata = { ...@@ -77,7 +77,7 @@ static const struct gpio_led_platform_data apu2_leds_pdata = {
.leds = apu2_leds, .leds = apu2_leds,
}; };
struct gpiod_lookup_table gpios_led_table = { static struct gpiod_lookup_table gpios_led_table = {
.dev_id = "leds-gpio", .dev_id = "leds-gpio",
.table = { .table = {
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED1, GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED1,
...@@ -110,7 +110,7 @@ static const struct gpio_keys_platform_data apu2_keys_pdata = { ...@@ -110,7 +110,7 @@ static const struct gpio_keys_platform_data apu2_keys_pdata = {
.name = "apu2-keys", .name = "apu2-keys",
}; };
struct gpiod_lookup_table gpios_key_table = { static struct gpiod_lookup_table gpios_key_table = {
.dev_id = "gpio-keys-polled", .dev_id = "gpio-keys-polled",
.table = { .table = {
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_MODESW, GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_MODESW,
......
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