net: phy: broadcom: add bcm_phy_modify_exp()
authorMichael Walle <michael@walle.cc>
Wed, 13 May 2020 16:35:22 +0000 (18:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 19:52:38 +0000 (12:52 -0700)
commite184a9072f8995e78ad6cef48bfeab2b987945ec
treea4e43061d3f7918bae8e0ee9f05edc159f7c3466
parent7d7e7bce768b9e21eb1b741a901c19c2bef1cccc
net: phy: broadcom: add bcm_phy_modify_exp()

Add the convenience function to do a read-modify-write. This has the
additional benefit of saving one write to the selection register.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/bcm-phy-lib.h