pinctrl: vt8500: Change devicetree data parsing
authorTony Prisk <linux@prisktech.co.nz>
Thu, 23 Jan 2014 08:57:33 +0000 (21:57 +1300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2014 08:08:01 +0000 (09:08 +0100)
commitf17248ed868767567298e1cdf06faf8159a81f7c
treea1623ea67c5ed0b193fb5f34696cce90e0198719
parent795779df22afc8bdee4e9fbe5c18c47e44974d75
pinctrl: vt8500: Change devicetree data parsing

Due to an assumption in the VT8500 pinctrl driver, the value passed
from devicetree for 'wm,pull' was not explicitly translated before
being passed to pinconf.

Since v3.10, changes to 'enum pin_config_param', PIN_CONFIG_BIAS_PULL_(UP/DOWN)
no longer map 1-to-1 with the expected values in devicetree.

This patch adds a small translation between the devicetree values (0..2)
and the enum pin_config_param equivalent values.

Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/vt8500/pinctrl-wmt.c