]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPI / gpio: make acpi_gpiochip_parse_own_gpio static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 29 Oct 2016 16:13:12 +0000 (16:13 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 31 Oct 2016 08:21:09 +0000 (09:21 +0100)
Fixes the following sparse warning:

drivers/gpio/gpiolib-acpi.c:863:18: warning:
 symbol 'acpi_gpiochip_parse_own_gpio' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c

index aa879d5eaa19e1ff1986f6286374ca9140291500..83fcfff19cd6f1eef11255c7d1bece9dee219ba6 100644 (file)
@@ -857,9 +857,9 @@ static void acpi_gpiochip_free_regions(struct acpi_gpio_chip *achip)
        }
 }
 
-struct gpio_desc *acpi_gpiochip_parse_own_gpio(struct acpi_gpio_chip *achip,
-       struct fwnode_handle *fwnode, const char **name, unsigned int *lflags,
-       unsigned int *dflags)
+static struct gpio_desc *acpi_gpiochip_parse_own_gpio(
+       struct acpi_gpio_chip *achip, struct fwnode_handle *fwnode,
+       const char **name, unsigned int *lflags, unsigned int *dflags)
 {
        struct gpio_chip *chip = achip->chip;
        struct gpio_desc *desc;