diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-02-04 13:02:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-07 10:51:45 -0500 |
commit | 14b89f36eed2993670906a3991bca496a5ebf1a6 (patch) | |
tree | 13350317f0ef8479ea5f315694679ffa9f064058 /include/net/dsa.h | |
parent | a23b296198cbf2b78101e7e745f9c45663c3f82e (diff) |
net: dsa: Rename and export dev_to_net_device()
In preparation for using this function in net/dsa/dsa2.c, rename the function
to make its scope DSA specific, and export it.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index e9c940c8936f..2a21fa80f898 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -445,6 +445,7 @@ struct dsa_switch_driver { void register_switch_driver(struct dsa_switch_driver *type); void unregister_switch_driver(struct dsa_switch_driver *type); struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev); +struct net_device *dsa_dev_to_net_device(struct device *dev); static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst) { |