]> asedeno.scripts.mit.edu Git - linux.git/commit
net: phy: improve handling delayed work
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 28 Sep 2018 06:51:09 +0000 (08:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 06:14:10 +0000 (23:14 -0700)
commit9f2959b6b52d43326b2f6a0e0d7ffe6f4fc3b5ca
tree45b48eee17f9f9d8d0554d50894de231ef7cd4f0
parenta0651d8e2784b189924b4f4f41b901835feef8a4
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>
drivers/net/phy/phy.c
include/linux/phy.h