diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-01-02 10:58:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-03 11:00:23 -0500 |
commit | 2b74e5be17d25fbca4be236a19efcd2ecae81cb2 (patch) | |
tree | eac566f8ce3c6b9619783cbcbad5006f5d3e2500 /include/linux/phy.h | |
parent | 424ca4c5512173e42b4086322dafd33ee882baf3 (diff) | |
download | linux-stable-2b74e5be17d25fbca4be236a19efcd2ecae81cb2.tar.gz linux-stable-2b74e5be17d25fbca4be236a19efcd2ecae81cb2.tar.bz2 linux-stable-2b74e5be17d25fbca4be236a19efcd2ecae81cb2.zip |
net: phy: add phy_modify() accessor
Add phy_modify() convenience accessor to complement the mdiobus
counterpart.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index af1a740dafd4..135aba5c3d39 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -762,6 +762,7 @@ static inline int __phy_write(struct phy_device *phydev, u32 regnum, u16 val) } int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set); +int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set); /** * phy_interrupt_is_valid - Convenience function for testing a given PHY irq |