Skip to contentSkip to conversation

net: dsa: mt7530: make functions mt7530_phy_write static

PATCH Applied Colin King 3 participants 3 messages Oct 3, 2017

Subsystems (6)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 net: dsa: mt7530: make functions mt7530_phy_write static

From: Colin Ian King <[email protected]>

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?

---
 drivers/net/dsa/mt7530.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/dsa/mt7530.c +2 -1
index faa3b88d2206..034241696ce2 100644
@@ -564,7 +564,8 @@ static int mt7530_phy_read(struct dsa_switch *ds, int port, int regnum)
 	return mdiobus_read_nested(priv->bus, port, regnum);
 }
 
-int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val)
+static int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum,
+			    u16 val)
 {
 	struct mt7530_priv *priv = ds->priv;
 
Signature · 1 line
2.14.1