summaryrefslogtreecommitdiff
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-28 04:04:50 +0400
committerDavid S. Miller <davem@davemloft.net>2014-08-28 09:59:40 +0400
commitbd47497a0171b96264927e3377254db13b9fe3e3 (patch)
tree6fe8f9e9f9bcb592390b86af28a9fe01a5fafd78 /include/net/dsa.h
parentfa981d9af82e08f316ed25ed43078f995cc4be0a (diff)
downloadlinux-bd47497a0171b96264927e3377254db13b9fe3e3.tar.xz
net: dsa: retain a per-port device_node pointer
We will later use the per-port device_node pointer to fetch a bunch of port-specific properties. Signed-off-by: Florian Fainelli <f.fainelli@gmail.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 decc62709acd..597875d3f69e 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -41,6 +41,7 @@ struct dsa_chip_data {
* or any other string to indicate this is a physical port.
*/
char *port_names[DSA_MAX_PORTS];
+ struct device_node *port_dn[DSA_MAX_PORTS];
/*
* An array (with nr_chips elements) of which element [a]