aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ks8695/include/mach/gpio.h
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-12-13 15:44:13 -0500
committerBen Dooks <ben-linux@fluff.org>2008-12-14 06:34:47 -0500
commit7ef71320eba8933275be10bfa44e083bec95b3f1 (patch)
tree3f588c2f24204ecedcce1b3814cd5c3b130e9c4b /arch/arm/mach-ks8695/include/mach/gpio.h
parent72880ad866c21badace4d8026c1e58f2fde087fb (diff)
[ARM] KS8695: Add GPIO to IRQ mapping function
Use the GPIOlib .to_irq call to map KS8695 GPIOs to the relevant IRQ line. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-ks8695/include/mach/gpio.h')
-rw-r--r--arch/arm/mach-ks8695/include/mach/gpio.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-ks8695/include/mach/gpio.h b/arch/arm/mach-ks8695/include/mach/gpio.h
index 6379f2fe843d..86312d476bc6 100644
--- a/arch/arm/mach-ks8695/include/mach/gpio.h
+++ b/arch/arm/mach-ks8695/include/mach/gpio.h
@@ -36,11 +36,6 @@
36extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type); 36extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
37 37
38/* 38/*
39 * Map GPIO line to IRQ number.
40 */
41extern int gpio_to_irq(unsigned int pin);
42
43/*
44 * Map IRQ number to GPIO line. 39 * Map IRQ number to GPIO line.
45 */ 40 */
46extern int irq_to_gpio(unsigned int irq); 41extern int irq_to_gpio(unsigned int irq);
@@ -54,6 +49,7 @@ extern int irq_to_gpio(unsigned int irq);
54 */ 49 */
55#define gpio_get_value __gpio_get_value 50#define gpio_get_value __gpio_get_value
56#define gpio_set_value __gpio_set_value 51#define gpio_set_value __gpio_set_value
52#define gpio_to_irq __gpio_to_irq
57 53
58/* Register the GPIOs */ 54/* Register the GPIOs */
59extern void ks8695_register_gpios(void); 55extern void ks8695_register_gpios(void);