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-ns-usb3.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-ns-usb3.c')
-rw-r--r-- | drivers/phy/broadcom/phy-bcm-ns-usb3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-ns-usb3.c b/drivers/phy/broadcom/phy-bcm-ns-usb3.c index b1adaecc26f8..bbfad209c890 100644 --- a/drivers/phy/broadcom/phy-bcm-ns-usb3.c +++ b/drivers/phy/broadcom/phy-bcm-ns-usb3.c @@ -183,7 +183,7 @@ static int bcm_ns_usb3_mdio_phy_write(struct bcm_ns_usb3 *usb3, u16 reg, { struct mdio_device *mdiodev = usb3->mdiodev; - return mdiobus_write(mdiodev->bus, mdiodev->addr, reg, value); + return mdiodev_write(mdiodev, reg, value); } static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev) |