]> git.baikalelectronics.ru Git - kernel.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)
commit126dfbc85fbbd3caeadad54b9af6aa08299ffe3f
tree45b48eee17f9f9d8d0554d50894de231ef7cd4f0
parent16f270e992b1e9f1e10819a9ef34c82a60484d71
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