dsa: lan9303: consistent naming for PHY address parameter
authorChristian Eggers <ceggers@arri.de>
Mon, 15 Jul 2024 12:30:50 +0000 (14:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jul 2024 15:49:59 +0000 (08:49 -0700)
Name it 'addr' instead of 'port' or 'phy'.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Link: https://patch.msgid.link/20240715123050.21202-1-ceggers@arri.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lan9303_mdio.c
include/linux/dsa/lan9303.h

index 167a86f39f277118582de8692d6e549f8d7a9e0b..0ac4857e5ee86eb734a70a9ea9e866b6ac707426 100644 (file)
@@ -58,19 +58,19 @@ static int lan9303_mdio_read(void *ctx, uint32_t reg, uint32_t *val)
        return 0;
 }
 
-static int lan9303_mdio_phy_write(struct lan9303 *chip, int phy, int reg,
+static int lan9303_mdio_phy_write(struct lan9303 *chip, int addr, int reg,
                                  u16 val)
 {
        struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);
 
-       return mdiobus_write_nested(sw_dev->device->bus, phy, reg, val);
+       return mdiobus_write_nested(sw_dev->device->bus, addr, reg, val);
 }
 
-static int lan9303_mdio_phy_read(struct lan9303 *chip, int phy,  int reg)
+static int lan9303_mdio_phy_read(struct lan9303 *chip, int addr, int reg)
 {
        struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);
 
-       return mdiobus_read_nested(sw_dev->device->bus, phy, reg);
+       return mdiobus_read_nested(sw_dev->device->bus, addr, reg);
 }
 
 static const struct lan9303_phy_ops lan9303_mdio_phy_ops = {
index b4f22112ba75d91c1664f8465d64df1a143eab90..3ce7cbcc37a3544b516e4aa791e1fa48959f5158 100644 (file)
@@ -5,8 +5,8 @@ struct lan9303;
 
 struct lan9303_phy_ops {
        /* PHY 1 and 2 access*/
-       int     (*phy_read)(struct lan9303 *chip, int port, int regnum);
-       int     (*phy_write)(struct lan9303 *chip, int port,
+       int     (*phy_read)(struct lan9303 *chip, int addr, int regnum);
+       int     (*phy_write)(struct lan9303 *chip, int addr,
                             int regnum, u16 val);
 };