Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 348baa6c authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by David S. Miller
Browse files

b44: rename b44_mii_{read, write} to b44_mdio_{read, write}_mii



The next patch will add these functions for phylib, and we should
rename the old ones before. This now indicates that these functions are
used for the mdio registers and on the mii interface.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7befa6ab
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ static inline int b44_writephy(struct b44 *bp, int reg, u32 val)
}

/* miilib interface */
static int b44_mii_read(struct net_device *dev, int phy_id, int location)
static int b44_mdio_read_mii(struct net_device *dev, int phy_id, int location)
{
	u32 val;
	struct b44 *bp = netdev_priv(dev);
@@ -309,7 +309,7 @@ static int b44_mii_read(struct net_device *dev, int phy_id, int location)
	return val;
}

static void b44_mii_write(struct net_device *dev, int phy_id, int location,
static void b44_mdio_write_mii(struct net_device *dev, int phy_id, int location,
			       int val)
{
	struct b44 *bp = netdev_priv(dev);
@@ -2213,8 +2213,8 @@ static int b44_init_one(struct ssb_device *sdev,
	}

	bp->mii_if.dev = dev;
	bp->mii_if.mdio_read = b44_mii_read;
	bp->mii_if.mdio_write = b44_mii_write;
	bp->mii_if.mdio_read = b44_mdio_read_mii;
	bp->mii_if.mdio_write = b44_mdio_write_mii;
	bp->mii_if.phy_id = bp->phy_addr;
	bp->mii_if.phy_id_mask = 0x1f;
	bp->mii_if.reg_num_mask = 0x1f;