Commit c4d09226 authored by Wei Yongjun's avatar Wei Yongjun Committed by Lee Jones

mfd: arizona: Make some symbols static

The sparse tool complains as follows:

drivers/mfd/arizona-spi.c:28:31: warning:
 symbol 'reset_gpios' was not declared. Should it be static?
drivers/mfd/arizona-spi.c:29:31: warning:
 symbol 'ldoena_gpios' was not declared. Should it be static?

Those symbols are not used outside of arizona-spi.c, so this
commit marks them static.

Fixes: e9338367 ("mfd: arizona: Add support for ACPI enumeration of WM5102 connected over SPI")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 1c7c1488
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include "arizona.h" #include "arizona.h"
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
const struct acpi_gpio_params reset_gpios = { 1, 0, false }; static const struct acpi_gpio_params reset_gpios = { 1, 0, false };
const struct acpi_gpio_params ldoena_gpios = { 2, 0, false }; static const struct acpi_gpio_params ldoena_gpios = { 2, 0, false };
static const struct acpi_gpio_mapping arizona_acpi_gpios[] = { static const struct acpi_gpio_mapping arizona_acpi_gpios[] = {
{ "reset-gpios", &reset_gpios, 1, }, { "reset-gpios", &reset_gpios, 1, },
......
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