mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-21 15:43:21 +02:00
bfdc854ba6
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>
23 lines
582 B
C
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 */
|