commit | d0006b002208936d36af8e4dce1f6dfeebb2dfba | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Mon Oct 16 11:12:16 2017 -0400 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 18 12:24:33 2017 +0100 |
tree | 414a1d4ba8c9c403fa88544b9f490eeb323facf4 | |
parent | d945097bb19501bd95790d8220d4eeb418b6ebb2 [diff] |
net: dsa: add slave to master helper Many part of the DSA slave code require to get the master device assigned to a slave device. Remove dsa_master_netdev() in favor of a dsa_slave_to_master() helper which does that. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>