diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-10-21 17:48:40 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-10-21 17:48:40 +0900 |
commit | 550109378450e7982101f299d41a80e8efc759ea (patch) | |
tree | 8ac065f460d6f8a12d54db0c011922dea37e8e7c /arch/sh/include | |
parent | bbc97411d11b3a835c62904fddb5ce9ff457f5fa (diff) |
sh: gpio: Stub in dummy GPIO<->IRQ mapping routines.
IRQ modes are not presently supported, so stub in dummy definitions
for now (taken from linux/gpio.h).
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/gpio.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h index a6ec3e43038..02de5b609ba 100644 --- a/arch/sh/include/asm/gpio.h +++ b/arch/sh/include/asm/gpio.h @@ -12,6 +12,8 @@ #ifndef __ASM_SH_GPIO_H #define __ASM_SH_GPIO_H +#include <linux/errno.h> + #if defined(CONFIG_CPU_SH3) #include <cpu/gpio.h> #endif @@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value); int gpio_get_value(unsigned gpio); void gpio_set_value(unsigned gpio, int value); +/* IRQ modes are unspported */ +static inline int gpio_to_irq(unsigned gpio) +{ + WARN_ON(1); + return -EINVAL; +} + +static inline int irq_to_gpio(unsigned irq) +{ + WARN_ON(1); + return -EINVAL; +} + #include <asm-generic/gpio.h> #endif /* __ASM_SH_GPIO_H */ |