Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/gpio/gpiolib-sysfs.h
··· 3 3 #ifndef GPIOLIB_SYSFS_H 4 4 #define GPIOLIB_SYSFS_H 5 5 6 - #ifdef CONFIG_GPIO_SYSFS 7 - 8 6 struct gpio_device; 7 + 8 + #ifdef CONFIG_GPIO_SYSFS 9 9 10 10 int gpiochip_sysfs_register(struct gpio_device *gdev); 11 11 void gpiochip_sysfs_unregister(struct gpio_device *gdev);