pinctrl: rockchip: precalculate iomux offsets
authorHeiko Stübner <heiko@sntech.de>
Sun, 15 Jun 2014 23:36:33 +0000 (01:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jul 2014 12:08:27 +0000 (14:08 +0200)
commit6bc0d121a95b31b0962bf6a3f89099059bde409e
treec6cac2d887093cf718d3931166d8ea8419c0dc43
parentfc72c923e50d5c0575faa5f6379bd55b900ed85a
pinctrl: rockchip: precalculate iomux offsets

An upcoming SoC introduces an interesting quirk to iomux handling making the
calculation of the iomux register-offset harder. To keep the complexity down
when getting/setting the mux, precalculate the actual register offset at
probe-time.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c