summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-11-30 09:28:28 +0800
committerMark Brown <broonie@kernel.org>2019-12-03 12:19:28 +0000
commita1f4c96b799b80118b50bd47320deb9013b7ff40 (patch)
treececdbb79ad9a21df720cd1cb1b1904f2dc43d210 /drivers/gpio/gpiolib-of.c
parent7251953d784baf7e5416afabe030a0e81de1a938 (diff)
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 <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>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 4b19e7e26b90..f90a161ca97a 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;