Skip to content

Commit 718c45b

Browse files
alekduIngo Molnar
authored andcommitted
x86/gpio: Implement x86 gpio_to_irq convert function
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: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 990a32d commit 718c45b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/x86/include/asm/gpio.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio)
3838
return __gpio_cansleep(gpio);
3939
}
4040

41-
/*
42-
* Not implemented, yet.
43-
*/
4441
static inline int gpio_to_irq(unsigned int gpio)
4542
{
46-
return -ENOSYS;
43+
return __gpio_to_irq(gpio);
4744
}
4845

4946
static inline int irq_to_gpio(unsigned int irq)

0 commit comments

Comments
 (0)