[RFC PATCH 03/18] OMAP: GPIO: Move gpio_get_index() to mach-omap

Kevin Hilman khilman at ti.com
Fri Apr 22 10:59:42 EDT 2011


Charulatha V <charu at ti.com> writes:

> gpio_get_index() uses cpu_is* checks. Move this function from
> plat-omap/gpio.c to SoC specific GPIO files in mach-omap*/ and
> use pdata to pass the function pointer.
>
> Signed-off-by: Charulatha V <charu at ti.com>

This one isn't really needed.  The index should be calculated by using
the bank width.

Below is a patch doing the same thing but using bitops and avoiding the
need for pdata function pointers.

Kevin




More information about the linux-arm-kernel mailing list