diff options
author | Sean Anderson <sean.anderson@seco.com> | 2021-10-22 18:59:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-24 15:40:33 +0300 |
commit | 65aa371ea52a92dd10826a2ea74bd2c395ee90a8 (patch) | |
tree | 8394c91a8882190b32bb9f77840c052cb0b67aec /drivers/phy/broadcom/phy-bcm-ns2-pcie.c | |
parent | c8fb89a7a7d117fc1e2cbce6f0d3fd58008878fe (diff) | |
download | linux-65aa371ea52a92dd10826a2ea74bd2c395ee90a8.tar.xz |
net: Convert more users of mdiobus_* to mdiodev_*
This converts users of mdiobus to mdiodev using the following semantic
patch:
@@
identifier mdiodev;
expression regnum;
@@
- mdiobus_read(mdiodev->bus, mdiodev->addr, regnum)
+ mdiodev_read(mdiodev, regnum)
@@
identifier mdiodev;
expression regnum, val;
@@
- mdiobus_write(mdiodev->bus, mdiodev->addr, regnum, val)
+ mdiodev_write(mdiodev, regnum, val)
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/phy/broadcom/phy-bcm-ns2-pcie.c')
-rw-r--r-- | drivers/phy/broadcom/phy-bcm-ns2-pcie.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-ns2-pcie.c b/drivers/phy/broadcom/phy-bcm-ns2-pcie.c index 4c7d11d2b378..9e7434a0d3e0 100644 --- a/drivers/phy/broadcom/phy-bcm-ns2-pcie.c +++ b/drivers/phy/broadcom/phy-bcm-ns2-pcie.c @@ -29,14 +29,12 @@ static int ns2_pci_phy_init(struct phy *p) int rc; /* select the AFE 100MHz block page */ - rc = mdiobus_write(mdiodev->bus, mdiodev->addr, - BLK_ADDR_REG_OFFSET, PLL_AFE1_100MHZ_BLK); + rc = mdiodev_write(mdiodev, BLK_ADDR_REG_OFFSET, PLL_AFE1_100MHZ_BLK); if (rc) goto err; /* set the 100 MHz reference clock amplitude to 2.05 v */ - rc = mdiobus_write(mdiodev->bus, mdiodev->addr, - PLL_CLK_AMP_OFFSET, PLL_CLK_AMP_2P05V); + rc = mdiodev_write(mdiodev, PLL_CLK_AMP_OFFSET, PLL_CLK_AMP_2P05V); if (rc) goto err; |