Files
linux-stable-mirror/include/linux/gpio.h
T
Arnd Bergmann bfdc854ba6 gpiolib: move legacy interface into linux/gpio/legacy.h
Split the old contents from gpio.h for clarity. Ideally any driver
that still includes linux/gpio.h can now be ported over to use
either linux/gpio/legacy.h or linux/gpio/consumer.h, with the
original file getting removed once that is complete.

No functional changes intended for now.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260428154522.2861492-1-arnd@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-05-04 09:59:19 +02:00

23 lines
582 B
C

/* 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 */