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

Commit 21d61166 authored by Radhey Shyam Pandey's avatar Radhey Shyam Pandey Committed by David S. Miller
Browse files

net: emaclite: Use __func__ instead of hardcoded name



Switch hardcoded function name with a reference to __func__ making
the code more maintainable. Address below checkpatch warning:

WARNING: Prefer using '"%s...", __func__' to using 'xemaclite_mdio_read',
this function's name, in a string
+               "xemaclite_mdio_read(phy_id=%i, reg=%x) == %x\n",

WARNING: Prefer using '"%s...", __func__' to using 'xemaclite_mdio_write',
this function's name, in a string
+               "xemaclite_mdio_write(phy_id=%i, reg=%x, val=%x)\n",

Signed-off-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dfe76a36
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -757,7 +757,7 @@ static int xemaclite_mdio_read(struct mii_bus *bus, int phy_id, int reg)
	rc = xemaclite_readl(lp->base_addr + XEL_MDIORD_OFFSET);
	rc = xemaclite_readl(lp->base_addr + XEL_MDIORD_OFFSET);


	dev_dbg(&lp->ndev->dev,
	dev_dbg(&lp->ndev->dev,
		"xemaclite_mdio_read(phy_id=%i, reg=%x) == %x\n",
		"%s(phy_id=%i, reg=%x) == %x\n", __func__,
		phy_id, reg, rc);
		phy_id, reg, rc);


	return rc;
	return rc;
@@ -780,7 +780,7 @@ static int xemaclite_mdio_write(struct mii_bus *bus, int phy_id, int reg,
	u32 ctrl_reg;
	u32 ctrl_reg;


	dev_dbg(&lp->ndev->dev,
	dev_dbg(&lp->ndev->dev,
		"xemaclite_mdio_write(phy_id=%i, reg=%x, val=%x)\n",
		"%s(phy_id=%i, reg=%x, val=%x)\n", __func__,
		phy_id, reg, val);
		phy_id, reg, val);


	if (xemaclite_mdio_wait(lp))
	if (xemaclite_mdio_wait(lp))