net: mdio: Move mdiobus_c45_addr() next to users
authorAndrew Lunn <andrew@lunn.ch>
Mon, 9 Jan 2023 15:30:45 +0000 (16:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jan 2023 23:53:36 +0000 (15:53 -0800)
commitce30fa56cbf09ab6b28170ced689c3cfd329e979
treeb30a96abd84606e809148c7304574288d9f56038
parentb063b1924fd9bf0bc157cf644764dc2151d04ccc
net: mdio: Move mdiobus_c45_addr() next to users

Now that mdiobus_c45_addr() is only used within the MDIO code during
fallback, move the function next to its only users. This function
should not be used any more in drivers, the c45 helpers should be used
in its place, so hiding it away will prevent any new users from being
added.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus.c
include/linux/mdio.h