From: YueHaibing Date: Sat, 30 Nov 2019 01:28:28 +0000 (+0800) Subject: gpiolib: of: Make of_gpio_spi_cs_get_count static X-Git-Tag: v5.15~4794^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1f4c96b799b80118b50bd47320deb9013b7ff40;p=platform%2Fkernel%2Flinux-starfive.git gpiolib: of: Make of_gpio_spi_cs_get_count static 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 Signed-off-by: YueHaibing Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20191130012828.14504-1-yuehaibing@huawei.com Signed-off-by: Mark Brown --- diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 4b19e7e..f90a161 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -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;