1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef GPIOLIB_SYSFS_H
4 #define GPIOLIB_SYSFS_H
8 #ifdef CONFIG_GPIO_SYSFS
10 int gpiochip_sysfs_register(struct gpio_device *gdev);
11 int gpiochip_sysfs_register_all(void);
12 void gpiochip_sysfs_unregister(struct gpio_device *gdev);
16 static inline int gpiochip_sysfs_register(struct gpio_device *gdev)
21 static inline int gpiochip_sysfs_register_all(void)
26 static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev)
30 #endif /* CONFIG_GPIO_SYSFS */
32 #endif /* GPIOLIB_SYSFS_H */