Skip to content

Commit 360cc34

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: dsa: mt7530: make functions mt7530_phy_write static
The function mt7530_phy_write is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warnings: symbol 'mt7530_phy_write' was not declared. Should it be static? Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 161ae6b commit 360cc34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/dsa/mt7530.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,8 @@ static int mt7530_phy_read(struct dsa_switch *ds, int port, int regnum)
564564
return mdiobus_read_nested(priv->bus, port, regnum);
565565
}
566566

567-
int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val)
567+
static int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum,
568+
u16 val)
568569
{
569570
struct mt7530_priv *priv = ds->priv;
570571

0 commit comments

Comments
 (0)