]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Uniform PHY driver access
authorGerhard Engleder <gerhard@engleder-embedded.com>
Thu, 19 Aug 2021 13:11:53 +0000 (15:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Aug 2021 13:31:46 +0000 (14:31 +0100)
commitcb8cbffc1bab5049f68164c97eb97daafbdc29da
tree675656ead78a611ce92a1a0d747312d0b26879c0
parent6594dbeb5560e53dab2760c071c30d493adb6446
net: phy: Uniform PHY driver access

struct phy_device contains a pointer to the PHY driver and nearly
everywhere this pointer is used to access the PHY driver. Only
mdio_bus_phy_may_suspend() is still using to_phy_driver() instead of the
PHY driver pointer. Uniform PHY driver access by eliminating
to_phy_driver() use in mdio_bus_phy_may_suspend().

Only phy_bus_match() and phy_probe() are still using to_phy_driver(),
because PHY driver pointer is not available there.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c