From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@secretlab.ca (Grant Likely) Date: Fri, 11 May 2012 18:11:44 -0600 Subject: irq_to_gpio support In-Reply-To: <20120419113019.GB26682@b20223-02.ap.freescale.net> References: <20120419113019.GB26682@b20223-02.ap.freescale.net> Message-ID: <20120512001144.18CC23E0791@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 19 Apr 2012 19:30:20 +0800, Richard Zhao 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.