mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
53430333c3
This inclusion guard became pointless after commit
40ca061b1b
"ARM: 7841/1: sa1100: remove complex GPIO interface"
which removed the last complex gpiolib interface.
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
26 lines
654 B
C
26 lines
654 B
C
#ifndef _ARCH_ARM_GPIO_H
|
|
#define _ARCH_ARM_GPIO_H
|
|
|
|
#if CONFIG_ARCH_NR_GPIO > 0
|
|
#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
|
|
#endif
|
|
|
|
/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
|
|
#include <asm-generic/gpio.h>
|
|
|
|
/* The trivial gpiolib dispatchers */
|
|
#define gpio_get_value __gpio_get_value
|
|
#define gpio_set_value __gpio_set_value
|
|
#define gpio_cansleep __gpio_cansleep
|
|
|
|
/*
|
|
* Provide a default gpio_to_irq() which should satisfy every case.
|
|
* However, some platforms want to do this differently, so allow them
|
|
* to override it.
|
|
*/
|
|
#ifndef gpio_to_irq
|
|
#define gpio_to_irq __gpio_to_irq
|
|
#endif
|
|
|
|
#endif /* _ARCH_ARM_GPIO_H */
|