summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-sysfs.h
blob: d0998de043a22cc99fdc88153ef0742966071842 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef GPIOLIB_SYSFS_H
#define GPIOLIB_SYSFS_H

struct gpio_device;

#ifdef CONFIG_GPIO_SYSFS

int gpiochip_sysfs_register(struct gpio_chip *gc);
void gpiochip_sysfs_unregister(struct gpio_chip *gc);

#else

static inline int gpiochip_sysfs_register(struct gpio_chip *gc)
{
	return 0;
}

static inline void gpiochip_sysfs_unregister(struct gpio_chip *gc)
{
}

#endif /* CONFIG_GPIO_SYSFS */

#endif /* GPIOLIB_SYSFS_H */