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)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:44:15 +0000 (13:44 -0700)
commitfc4811a6acd74f37b58fd2e2a19ed63b8e86dc77
tree24d230428aacb89e129291db2b31718a80ea618a
parent07013c1df79aee8aa6725b96c00e3104ace010bf
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)

Change-Id: Ife82b86c851f354ee123cb520ea6c02ef9b025f8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/267328
GVS: Gerrit_Virtual_Submit
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
drivers/pinctrl/pinconf-generic.c
drivers/pinctrl/pinconf.h