diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-01-04 19:40:24 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-05-05 18:42:38 +0100 |
commit | 94c6ef24d489a289a99af37f6b0e7ab797e30eef (patch) | |
tree | a45efd5bb71103b039ea055a66062094e83d447c /include | |
parent | 6a343c42be2584a86a6574976515cc24b6e81390 (diff) |
net: phy: remove the indirect MMD read/write methods
Remove the indirect MMD read/write methods which are now no longer
necessary.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 3d40b9b2bf7c..6edefbd16cdb 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -660,21 +660,6 @@ struct phy_fixup { int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); /** - * phy_read_mmd_indirect - reads data from the MMD registers - * @phydev: The PHY device bus - * @prtad: MMD Address - * @addr: PHY address on the MII bus - * - * Description: it reads data from the MMD registers (clause 22 to access to - * clause 45) of the specified phy address. - */ -static inline __deprecated int phy_read_mmd_indirect(struct phy_device *phydev, - int prtad, int devad) -{ - return phy_read_mmd(phydev, devad, prtad); -} - -/** * phy_read - Convenience function for reading a given PHY register * @phydev: the phy_device struct * @regnum: register number to read @@ -757,22 +742,6 @@ static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) */ int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); -/** - * phy_write_mmd_indirect - writes data to the MMD registers - * @phydev: The PHY device - * @prtad: MMD Address - * @devad: MMD DEVAD - * @data: data to write in the MMD register - * - * Description: Write data from the MMD registers of the specified - * phy address. - */ -static inline __deprecated void phy_write_mmd_indirect( - struct phy_device *phydev, int prtad, int devad, u32 data) -{ - phy_write_mmd(phydev, devad, prtad, data); -} - struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, bool is_c45, struct phy_c45_device_ids *c45_ids); |