pinctrl: rockchip: generalize perpin driver-strength setting
authorHeiko Stübner <heiko@sntech.de>
Fri, 12 Jun 2015 21:50:11 +0000 (23:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jun 2015 08:20:00 +0000 (10:20 +0200)
commitef17f69f5bf57defa525d958af7aa4848e338b5a
treedb0b000f28f793c8120edd56d800c5434c4b7b9d
parent7ac91bda80a05122ca86240b1da3a68a4cdaa982
pinctrl: rockchip: generalize perpin driver-strength setting

The upcoming support for the RK3368 ARM64 SoC also supports perpin
drive strength settings (at different register positions), so generalize
the register and offset calculation to easily support this one too.

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