net: phylink: Add phylink_mac_link_{up, down} wrapper functions
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:11 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit27755ff88c0ecbca46bbba1202766c0ce54a3af2
tree372de586b71d947175b71968e6a7df4bdd0d77d4
parentc920f745f45d4610e08943690301b8055fb5e834
net: phylink: Add phylink_mac_link_{up, down} wrapper functions

This is a cosmetic patch that reduces the clutter in phylink_resolve
around calling the .mac_link_up/.mac_link_down driver callbacks.  In a
further patch this logic will be extended to emit notifications in case
a net device does not exist.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c