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)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:57:32 +0000 (11:57 +0200)
commit7db9af4b6e41be599e0fcd50d687138a5add428c
tree222803dcf9b69980bf4398fc203b832dc2b1a6c8
parent5c0e3580cb988cf4688070d2d7ac56cf83fc6959
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
This page took 0.037618 seconds and 5 git commands to generate.