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)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Nov 2013 04:04:12 +0000 (12:04 +0800)
commit87c4fbd5ef47e74320db7cd747ce19b0b5898b9c
tree3b2252771f63be5de60f9dc47e42990b6ab93993
parent94c3b14a947398ba7b9b20610d54d8b31dda01e2
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>
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
drivers/pinctrl/pinconf-generic.c
drivers/pinctrl/pinconf.h