pinctrl: sunxi: introduce IRQ bank conversion function
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 16 Mar 2018 14:02:08 +0000 (22:02 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Mar 2018 13:06:25 +0000 (15:06 +0200)
commit29dfc6bbcc5e1ef7ce1008c4713387efb8f567d2
treea82af901a65b05b017648dd523b072fd29b0ed09
parent4b0d6c5a0014beef5423a380f12b9411ebf0c907
pinctrl: sunxi: introduce IRQ bank conversion function

The Allwinner H6 SoC have its pin controllers with the first IRQ-capable
GPIO bank at IRQ bank 1 and the second bank at IRQ bank 5. Some
refactors in the sunxi pinctrl framework are needed.

This commit introduces a IRQ bank conversion function, which replaces
the "(bank_base + bank)" code in IRQ register access.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.h