diff options
| author | Sergio Paracuellos <[email protected]> | 2018-06-28 21:03:06 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-07-06 17:33:43 +0200 |
| commit | e12a1a6e087b9803befc6e9ab47734716c3e20e2 (patch) | |
| tree | e05aad32742423e6068326712fcea843bb3e4101 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | d7461eab5a04e8426dc5ddcbf7911903d22b69f4 (diff) | |
staging: mt7621-pinctrl: refactor rt2880_pinctrl_dt_node_to_map function
Using 'function' and 'group' bindings in the device tree give the
posibility of refactor 'rt2880_pinctrl_dt_node_to_map' and simplify
it a lot. Make use of 'for_each_node_with_property' function to count
number of groups for the node and iterate over the groups using
'of_property_for_each_string' calling 'pinctrl_utils_add_map_mux'
function which is the same of the custom function in this driver code
'rt2880_pinctrl_dt_subnode_to_map' which is not needed anymore.
Signed-off-by: Sergio Paracuellos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions