projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990a32d
)
x86/gpio: Implement x86 gpio_to_irq convert function
author
Alek Du
<
[email protected]
>
Tue, 11 Jan 2011 10:55:32 +0000
(10:55 +0000)
committer
Ingo Molnar
<
[email protected]
>
Tue, 11 Jan 2011 11:46:15 +0000
(12:46 +0100)
We need this for x86 MID platforms where GPIO interrupts are
used. No special magic is needed so the default 1:1 behaviour
will do nicely.
Signed-off-by: Alek Du <
[email protected]
>
Signed-off-by: Jacob Pan <
[email protected]
>
Signed-off-by: Alan Cox <
[email protected]
>
LKML-Reference: <
20110111105439
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/include/asm/gpio.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/gpio.h
b/arch/x86/include/asm/gpio.h
index 49dbfdfa50f9f3a80113c264b7c8fe0439746dc0..91d915a6525995e79c306519b43e1812d154a09b 100644
(file)
--- a/
arch/x86/include/asm/gpio.h
+++ b/
arch/x86/include/asm/gpio.h
@@
-38,12
+38,9
@@
static inline int gpio_cansleep(unsigned int gpio)
return __gpio_cansleep(gpio);
}
-/*
- * Not implemented, yet.
- */
static inline int gpio_to_irq(unsigned int gpio)
{
- return
-ENOSYS
;
+ return
__gpio_to_irq(gpio)
;
}
static inline int irq_to_gpio(unsigned int irq)