net: Convert more users of mdiobus_* to mdiodev_*
authorSean Anderson <sean.anderson@seco.com>
Fri, 22 Oct 2021 15:59:14 +0000 (11:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2021 12:40:33 +0000 (13:40 +0100)
commit65aa371ea52a92dd10826a2ea74bd2c395ee90a8
tree8394c91a8882190b32bb9f77840c052cb0b67aec
parentc8fb89a7a7d117fc1e2cbce6f0d3fd58008878fe
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>
drivers/base/regmap/regmap-mdio.c
drivers/net/dsa/xrs700x/xrs700x_mdio.c
drivers/phy/broadcom/phy-bcm-ns-usb3.c
drivers/phy/broadcom/phy-bcm-ns2-pcie.c