[PATCH 2/3] asm/gpio.h: support gpio_to_irq()
Peter Korsgaard
jacmet at sunsite.dk
Wed Dec 9 18:32:54 EST 2009
>>>>> "Peter" == Peter Korsgaard <jacmet at sunsite.dk> writes:
Peter> gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's
Peter> safe to always call.
Comments?
Peter> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Peter> ---
Peter> arch/powerpc/include/asm/gpio.h | 5 +----
Peter> 1 files changed, 1 insertions(+), 4 deletions(-)
Peter> diff --git a/arch/powerpc/include/asm/gpio.h b/arch/powerpc/include/asm/gpio.h
Peter> index ea04632..38762ed 100644
Peter> --- a/arch/powerpc/include/asm/gpio.h
Peter> +++ b/arch/powerpc/include/asm/gpio.h
Peter> @@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio)
Peter> return __gpio_cansleep(gpio);
Peter> }
Peter> -/*
Peter> - * Not implemented, yet.
Peter> - */
Peter> static inline int gpio_to_irq(unsigned int gpio)
Peter> {
Peter> - return -ENOSYS;
Peter> + return __gpio_to_irq(gpio);
Peter> }
Peter> static inline int irq_to_gpio(unsigned int irq)
Peter> --
Peter> 1.6.5
--
Bye, Peter Korsgaard
More information about the Linuxppc-dev
mailing list