summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-11-27 20:37:15 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-11-28 17:44:35 +0100
commit58bfaaac03284d82a55a724bfe2d97e19f3a11d0 (patch)
treeb3c0720e20b2a97b7ae515ba389f10c8ee4873dc /drivers/gpio
parente6d71c7878bc6140d1b0b527116af8fd8376d3d5 (diff)
downloadlwn-58bfaaac03284d82a55a724bfe2d97e19f3a11d0.tar.gz
lwn-58bfaaac03284d82a55a724bfe2d97e19f3a11d0.zip
gpio: sysfs: fix forward declaration of struct gpio_device
The forward declaration for struct gpio_device should be provided for both branches of the #ifdef. Fixes: 08a149c40bdb ("gpiolib: Clean up headers") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-sysfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-sysfs.h b/drivers/gpio/gpiolib-sysfs.h
index 0f213bdb4732..b794b396d6a5 100644
--- a/drivers/gpio/gpiolib-sysfs.h
+++ b/drivers/gpio/gpiolib-sysfs.h
@@ -3,10 +3,10 @@
#ifndef GPIOLIB_SYSFS_H
#define GPIOLIB_SYSFS_H
-#ifdef CONFIG_GPIO_SYSFS
-
struct gpio_device;
+#ifdef CONFIG_GPIO_SYSFS
+
int gpiochip_sysfs_register(struct gpio_device *gdev);
void gpiochip_sysfs_unregister(struct gpio_device *gdev);