]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: vt8500: Change devicetree data parsing
authorTony Prisk <linux@prisktech.co.nz>
Thu, 23 Jan 2014 08:57:33 +0000 (21:57 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Feb 2014 19:10:11 +0000 (11:10 -0800)
commit9057e3a49db9d62f2214762b786d7d13f5a8905d
treecae1d96bbe914dff38c2b79b75b93dca55e2ff8a
parentaa5c9d33ed6a4c177b49f1873b00a365c0c4731a
pinctrl: vt8500: Change devicetree data parsing

commit f17248ed868767567298e1cdf06faf8159a81f7c upstream.

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.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/vt8500/pinctrl-wmt.c