aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-06-04 15:17:07 -0400
committerDavid S. Miller <davem@davemloft.net>2016-06-04 17:29:55 -0400
commit83c0afaec7b730b16c518aecc8e6246ec91b265e (patch)
tree5d675d5517efb9532cb4154ae982a3d3ecb2798e /net/dsa/dsa_priv.h
parentb516d453239551d7916d5e35bc68823ed5b55f98 (diff)
net: dsa: Add new binding implementation
The existing DSA binding has a number of limitations and problems. The main problem is that it cannot represent a switch as a linux device, hanging off some bus. It is limited to one CPU port. The DSA platform device is artificial, and does not really represent hardware. Implement a new binding which can be embedded into any type of node on a bus to represent one switch device, and its links to other switches. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index 72f7b8989cfb..b42f1a5f95f3 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -59,7 +59,7 @@ const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol);
59extern const struct dsa_device_ops notag_netdev_ops; 59extern const struct dsa_device_ops notag_netdev_ops;
60void dsa_slave_mii_bus_init(struct dsa_switch *ds); 60void dsa_slave_mii_bus_init(struct dsa_switch *ds);
61int dsa_slave_create(struct dsa_switch *ds, struct device *parent, 61int dsa_slave_create(struct dsa_switch *ds, struct device *parent,
62 int port, char *name); 62 int port, const char *name);
63void dsa_slave_destroy(struct net_device *slave_dev); 63void dsa_slave_destroy(struct net_device *slave_dev);
64int dsa_slave_suspend(struct net_device *slave_dev); 64int dsa_slave_suspend(struct net_device *slave_dev);
65int dsa_slave_resume(struct net_device *slave_dev); 65int dsa_slave_resume(struct net_device *slave_dev);