aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-09-28 08:51:09 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-01 23:14:10 -0700
commit9f2959b6b52d43326b2f6a0e0d7ffe6f4fc3b5ca (patch)
tree45b48eee17f9f9d8d0554d50894de231ef7cd4f0 /include/linux/phy.h
parentMerge branch 'net-systemport-Turn-on-offloads-by-default' (diff)
downloadlinux-dev-9f2959b6b52d43326b2f6a0e0d7ffe6f4fc3b5ca.tar.xz
linux-dev-9f2959b6b52d43326b2f6a0e0d7ffe6f4fc3b5ca.zip
net: phy: improve handling delayed work
Using mod_delayed_work() allows to simplify handling delayed work and removes the need for the sync parameter in phy_trigger_machine(). Also introduce a helper phy_queue_state_machine() to encapsulate the low-level delayed work calls. No functional change intended. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index dff51dd36e52..3ea87f774a76 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1054,7 +1054,7 @@ void phy_change_work(struct work_struct *work);
void phy_mac_interrupt(struct phy_device *phydev);
void phy_start_machine(struct phy_device *phydev);
void phy_stop_machine(struct phy_device *phydev);
-void phy_trigger_machine(struct phy_device *phydev, bool sync);
+void phy_trigger_machine(struct phy_device *phydev);
int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
void phy_ethtool_ksettings_get(struct phy_device *phydev,
struct ethtool_link_ksettings *cmd);