diff options
author | Russell King | 2018-01-02 11:58:53 +0100 |
---|---|---|
committer | David S. Miller | 2018-01-03 17:00:23 +0100 |
commit | 2b74e5be17d25fbca4be236a19efcd2ecae81cb2 (patch) | |
tree | eac566f8ce3c6b9619783cbcbad5006f5d3e2500 /include/linux/phy.h | |
parent | net: phy: marvell: fix paged access races (diff) | |
download | kernel-qcow2-linux-2b74e5be17d25fbca4be236a19efcd2ecae81cb2.tar.gz kernel-qcow2-linux-2b74e5be17d25fbca4be236a19efcd2ecae81cb2.tar.xz kernel-qcow2-linux-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 |