Skip to content

Commit

Permalink
x86/gpio: Implement x86 gpio_to_irq convert function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
alekdu authored and Ingo Molnar committed Jan 11, 2011
1 parent 990a32d commit 718c45b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/x86/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 718c45b

Please sign in to comment.