summaryrefslogtreecommitdiff
path: root/include/linux/gpio.h
blob: b0d4942a65de241eec19671c7bc8f4cbccccae4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * NOTE: This header *must not* be included.
 *
 * If you're implementing a GPIO driver, only include <linux/gpio/driver.h>
 * If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h>
 * If you're using the legacy interfaces, include <linux/gpio/legacy.h>
 */

#ifndef __LINUX_GPIO_H
#define __LINUX_GPIO_H

#include <linux/types.h>
#ifdef CONFIG_GPIOLIB
#include <linux/gpio/consumer.h>
#endif

#ifdef CONFIG_GPIOLIB_LEGACY
#include <linux/gpio/legacy.h>
#endif /* CONFIG_GPIOLIB_LEGACY */

#endif /* __LINUX_GPIO_H */