Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / gpio / gpiolib-sysfs.h
blobb794b396d6a52588c93839fbba062eb160236ca4
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef GPIOLIB_SYSFS_H
4 #define GPIOLIB_SYSFS_H
6 struct gpio_device;
8 #ifdef CONFIG_GPIO_SYSFS
10 int gpiochip_sysfs_register(struct gpio_device *gdev);
11 void gpiochip_sysfs_unregister(struct gpio_device *gdev);
13 #else
15 static inline int gpiochip_sysfs_register(struct gpio_device *gdev)
17 return 0;
20 static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev)
24 #endif /* CONFIG_GPIO_SYSFS */
26 #endif /* GPIOLIB_SYSFS_H */