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: NKevin Hilman <khilman@ti.com>
Showing
想要评论请 注册 或 登录