diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-09 18:30:45 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-11 02:53:36 +0300 |
commit | ce30fa56cbf09ab6b28170ced689c3cfd329e979 (patch) | |
tree | b30a96abd84606e809148c7304574288d9f56038 /include/linux/mdio.h | |
parent | b063b1924fd9bf0bc157cf644764dc2151d04ccc (diff) | |
download | linux-ce30fa56cbf09ab6b28170ced689c3cfd329e979.tar.xz |
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>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 1e78c8410b21..97b49765e8b5 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -459,11 +459,6 @@ static inline int mdiodev_modify_changed(struct mdio_device *mdiodev, mask, set); } -static inline u32 mdiobus_c45_addr(int devad, u16 regnum) -{ - return MII_ADDR_C45 | devad << MII_DEVADDR_C45_SHIFT | regnum; -} - static inline u16 mdiobus_c45_regad(u32 regnum) { return FIELD_GET(MII_REGADDR_C45_MASK, regnum); |