net: dsa: mt7530: make functions mt7530_phy_write static
authorColin Ian King <[email protected]>
Tue, 3 Oct 2017 10:46:33 +0000 (11:46 +0100)
committerDavid S. Miller <[email protected]>
Tue, 3 Oct 2017 17:20:12 +0000 (10:20 -0700)
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]>
drivers/net/dsa/mt7530.c

index faa3b88d2206a5e81583356bf1f15eb145afa0c5..034241696ce2134f64d6155649556bac51cf1402 100644 (file)
@@ -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;