]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: simplify phy_get_internal_delay()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 11 Jun 2025 13:56:19 +0000 (14:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 01:23:54 +0000 (18:23 -0700)
commitc4688ff47fd719e2371b984d59759f9fa09dd6a2
tree61535468566aef4673c0c5084a1b436b4c503757
parent00ee2537255e25a14360288dbd94ff62c0db497d
net: phy: simplify phy_get_internal_delay()

Simplify the arguments passed to phy_get_internal_delay() - the "dev"
argument is always &phydev->mdio.dev, and as the phydev is passed in,
there's no need to also pass in the struct device, especially when this
function is the only reason for the caller to have a local "dev"
variable.

Remove the redundant "dev" argument, and update the callers.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/E1uPLwB-003VzR-4C@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83822.c
drivers/net/phy/dp83869.c
drivers/net/phy/intel-xway.c
drivers/net/phy/mscc/mscc_main.c
drivers/net/phy/phy_device.c
include/linux/phy.h