gpio/omap: replace get_gpio_index() by using bank width
authorKevin Hilman <khilman@ti.com>
Fri, 22 Apr 2011 14:59:07 +0000 (07:59 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 16 Jun 2011 18:13:32 +0000 (11:13 -0700)
commit129fd2230733ff0457e76d6aabde136cf8666bc0
treed2f1d90f4629e93cd02d17211eb2643962bdad8f
parentc390aad0330f330ce9818ef5269169bbae335da9
gpio/omap: replace get_gpio_index() by using bank width

The get_gpio_index() function, littered with cpu_is_* checks can be easily
replaced by using bitops based on the GPIO bank width.  Do so.

Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c