commit | 975e6e32215e6cbc09b65d762865b1a46e8e9103 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Fri Nov 03 19:05:27 2017 -0400 |
committer | David S. Miller <davem@davemloft.net> | Sun Nov 05 22:31:39 2017 +0900 |
tree | 93a36b4df42a92294714cbdf8a70e4b23c427be8 | |
parent | 0eefe2c1730020c6207bc9695fd466e558301dbb [diff] |
net: dsa: rework switch parsing When parsing a switch, we have to identify to which tree it belongs and parse its ports. Provide two functions to separate the OF and platform data specific paths. Also use the of_property_read_variable_u32_array function to parse the OF member array instead of calling of_property_read_u32_index twice. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>