mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 10:25:06 +07:00
25 lines
457 B
C
25 lines
457 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
|
||
|
#ifndef GPIOLIB_SYSFS_H
|
||
|
#define GPIOLIB_SYSFS_H
|
||
|
|
||
|
#ifdef CONFIG_GPIO_SYSFS
|
||
|
|
||
|
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 */
|