Skip to content

Commit

Permalink
net: dsa: lan9303: make functions lan9303_mdio_phy_{read|write} static
Browse files Browse the repository at this point in the history
The functions lan9303_mdio_phy_write and lan9303_mdio_phy_read are local
to the source and do not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'lan9303_mdio_phy_write' was not declared. Should it be static?
symbol 'lan9303_mdio_phy_read' 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]>
  • Loading branch information
Colin Ian King authored and davem330 committed Oct 3, 2017
1 parent da885b6 commit 161ae6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/dsa/lan9303_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ static int lan9303_mdio_read(void *ctx, uint32_t reg, uint32_t *val)
return 0;
}

int lan9303_mdio_phy_write(struct lan9303 *chip, int phy, int reg, u16 val)
static int lan9303_mdio_phy_write(struct lan9303 *chip, int phy, int reg,
u16 val)
{
struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);

return mdiobus_write_nested(sw_dev->device->bus, phy, reg, val);
}

int lan9303_mdio_phy_read(struct lan9303 *chip, int phy, int reg)
static int lan9303_mdio_phy_read(struct lan9303 *chip, int phy, int reg)
{
struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);

Expand Down

0 comments on commit 161ae6b

Please sign in to comment.