From: Soren Brinkmann Date: Fri, 9 Jan 2015 15:43:45 +0000 (-0800) Subject: pinctrl: pinconf-generic: Infer map type from DT property X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~123^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31c89c959667194350f496947b576c149503ce98;p=pandora-kernel.git pinctrl: pinconf-generic: Infer map type from DT property With the new 'groups' property, the DT parser can infer the map type from the fact whether 'pins' or 'groups' is used to specify the pin group to work on. To maintain backwards compatibitliy with current usage of the DT binding, this is only done when PIN_MAP_TYPE_INVALID is passed to the parsing function as type. Also, a new helper 'pinconf_generic_dt_node_to_map_all()' is introduced, which can be used by drivers as generic callback for dt_node_to_map() to leverage the new feature. Changes since v2: - rename dt_pin_specifier to subnode_target_type - add additional comment in header file explaining passing an invalid map type - mention map_all() helper in commit message Changes since RFC v2: - none Signed-off-by: Soren Brinkmann Tested-by: Andreas Färber Signed-off-by: Linus Walleij --- Reading git-diff-tree failed