irq_to_gpio support

Grant Likely grant.likely at secretlab.ca
Fri May 11 20:11:44 EDT 2012


On Thu, 19 Apr 2012 19:30:20 +0800, Richard Zhao <richard.zhao at freescale.com> wrote:
> Hi Grant & Linus
> 
> I saw gpio lib didn't provide irq_to_gpio support. Are we dropping it?
> git grep irq_to_gpio still return a lot of things.
> 
> I'm looking at drivers/input/touchscreen/egalax_ts.c driver.
> It failed to compile without irq_to_gpio. It's a i2c client device and
> use irq line configured as gpio to wakeup touchscreen controller.
> If we don't have irq_to_gpio, I'm afraid it has to use plat data or
> of property to pass gpio number.

Yeah, since there can be an 1:n relationship between irqs and gpios I
can't see that api ever being implemented correctly.

g.




More information about the linux-arm-kernel mailing list