WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpio / gpiolib-sysfs.h
blobddd0e503f8eb97619bdb9f556aded129bbcfb6b1
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef GPIOLIB_SYSFS_H
4 #define GPIOLIB_SYSFS_H
6 #ifdef CONFIG_GPIO_SYSFS
8 int gpiochip_sysfs_register(struct gpio_device *gdev);
9 void gpiochip_sysfs_unregister(struct gpio_device *gdev);
11 #else
13 static inline int gpiochip_sysfs_register(struct gpio_device *gdev)
15 return 0;
18 static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev)
22 #endif /* CONFIG_GPIO_SYSFS */
24 #endif /* GPIOLIB_SYSFS_H */