summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-06-04 21:16:58 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-04 14:29:53 -0700
commit189b0d93ec61e1f991e96d7bc03b03cf929d164c (patch)
tree38e7f6d3ba4a9916314afc85456d2b3050655269 /include/net/dsa.h
parentc8b098086b4c744084350d2757a637ad756adf34 (diff)
downloadtalos-obmc-linux-189b0d93ec61e1f991e96d7bc03b03cf929d164c.tar.gz
talos-obmc-linux-189b0d93ec61e1f991e96d7bc03b03cf929d164c.zip
net: dsa: Move port device node into port structure
Move the port device node structure into the port structure, from the chip data. This information is needed in the next step of implementing the new binding. The chip data structure is used while parsing the whole old binding, before the individual switch structures exist. With the new bindings, this is reversed, the switches exist first, and the interconnections between the switches is derived from the individual switch bindings. Thus this chip data structure becomes unneeded. Signed-off-by: Andrew Lunn <andrew@lunn.ch> eviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 9aed8572037c..8314197d028f 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -121,6 +121,7 @@ struct dsa_switch_tree {
struct dsa_port {
struct net_device *netdev;
+ struct device_node *dn;
};
struct dsa_switch {
OpenPOWER on IntegriCloud