pinctrl: add function to parse generic pinconfig properties from a dt node
authorHeiko Stübner <heiko@sntech.de>
Mon, 10 Jun 2013 19:40:29 +0000 (21:40 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 4 Apr 2014 15:20:17 +0000 (16:20 +0100)
commita3aadc7709bc7659d5bfbaf57028a2463fcc4346
treea6ea80396010478a7657ed6c5b507b6aaccca9bd
parentfd08eab34aaf6f8ea441ee7c59c9e9771aa1e5e0
pinctrl: add function to parse generic pinconfig properties from a dt node

pinconf_generic_parse_dt_config() takes a node as input and generates an
array of generic pinconfig values from the properties of this node.

As I couldn't find a mechanism to count the number of properties of a node
the function uses internally an array to accept one of parameter and copies
the real present options to a smaller variable at its end.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 7db9af4b6e41be599e0fcd50d687138a5add428c)
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
drivers/pinctrl/pinconf-generic.c
drivers/pinctrl/pinconf.h