net: dsa: mt7530: make functions mt7530_phy_write static
Subsystems (6)
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
@@ -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
Quoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
The function
mt7530_phy_writeis 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]>
Andrew
From: Colin King <[email protected]>
Date: Tue, 3 Oct 2017 11:46:33 +0100
Quoted 9 lines
From: Colin Ian King <[email protected]>
The function
mt7530_phy_writeis 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]>
Applied.