mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
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: 08a149c40b
("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>
This commit is contained in:
parent
e6d71c7878
commit
58bfaaac03
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user