net: phy: Encapsulate actions performed during link state changes into function phy_a...
authorZach Brown <zach.brown@ni.com>
Mon, 17 Oct 2016 15:49:53 +0000 (10:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 15:56:30 +0000 (11:56 -0400)
commit61a179657f1d00e45697de20067d5d7b3724eb91
treeb2a8ef281d8f489be8630cc8256e40359ad85615
parent0e0f27dd65dd7403d41d72a8efafe388bbb36f84
net: phy: Encapsulate actions performed during link state changes into function phy_adjust_link

During phy state machine state transitions some set of actions should
occur whenever the link state changes. These actions should be
encapsulated into a single function

This patch adds the phy_adjust_link function, which is called whenever
phydev->adjust_link would have been called before. Actions that should
occur whenever the phy link is adjusted can now be added to the
phy_adjust_link function.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c