[PATCH 2/6] arm/imx: remove the uses of gpio_to_irq()
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Aug 12 04:00:00 EDT 2011
On Fri, Aug 12, 2011 at 03:54:57PM +0800, Shawn Guo wrote:
> gpio_to_irq() is too generic to be defined and used by i.mx platform
> code. The patch defines IMX_GPIO_TO_IRQ() in mach/hardware.h and
> replaces all the uses of gpio_to_irq() with IMX_GPIO_TO_IRQ().
That makes no sense. Why not continue to use gpio_to_irq() but provide
the .to_irq method in your gpiolib driver so it can work, and use that
in the places where its used at runtime?
(You won't be able to use it for static initialization obviously.)
More information about the linux-arm-kernel
mailing list