gpiolib: of: Make of_gpio_spi_cs_get_count static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 30 Nov 2019 01:28:28 +0000 (09:28 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Dec 2019 12:19:28 +0000 (12:19 +0000)
Fix sparse warning:

drivers/gpio/gpiolib-of.c:35:5: warning:
 symbol 'of_gpio_spi_cs_get_count' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191130012828.14504-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpio/gpiolib-of.c

index 4b19e7e..f90a161 100644 (file)
@@ -32,7 +32,7 @@
  * the counting of "cs-gpios" to count "gpios" transparent to the
  * driver.
  */
-int of_gpio_spi_cs_get_count(struct device *dev, const char *con_id)
+static int of_gpio_spi_cs_get_count(struct device *dev, const char *con_id)
 {
        struct device_node *np = dev->of_node;