1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ARCH_ARM_GPIO_H
3 #define _ARCH_ARM_GPIO_H
5 /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
6 #include <asm-generic/gpio.h>
8 /* The trivial gpiolib dispatchers */
9 #define gpio_get_value __gpio_get_value
10 #define gpio_set_value __gpio_set_value
11 #define gpio_cansleep __gpio_cansleep
14 * Provide a default gpio_to_irq() which should satisfy every case.
15 * However, some platforms want to do this differently, so allow them
19 #define gpio_to_irq __gpio_to_irq
22 #endif /* _ARCH_ARM_GPIO_H */