2020-07-08 12:15:44 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
#ifndef GPIOLIB_SYSFS_H
|
|
|
|
#define GPIOLIB_SYSFS_H
|
|
|
|
|
2022-10-07 17:53:44 +08:00
|
|
|
struct gpio_device;
|
|
|
|
|
2023-11-28 03:37:15 +08:00
|
|
|
#ifdef CONFIG_GPIO_SYSFS
|
|
|
|
|
2020-07-08 12:15:44 +08:00
|
|
|
int gpiochip_sysfs_register(struct gpio_device *gdev);
|
|
|
|
void gpiochip_sysfs_unregister(struct gpio_device *gdev);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline int gpiochip_sysfs_register(struct gpio_device *gdev)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_GPIO_SYSFS */
|
|
|
|
|
|
|
|
#endif /* GPIOLIB_SYSFS_H */
|