]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2014 08:08:01 +0000 (09:08 +0100)
commit2bdf3bf238bc54b2803b20619a86aea25f2af44d
treea1623ea67c5ed0b193fb5f34696cce90e0198719
parent06b14127bb46fb793ff53fd2aa913b2c83db52d4
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