summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-12-04 07:37:23 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-06 15:49:56 +0100
commitdbe6452b93d2929e0d9e26f2e7d69448d74c0fe8 (patch)
treed95c6e4b77bc44bfc9cb494be64dbc1d1a162fec /commands
parentbd9860efadf1d4801b01ade3c38f495829daae36 (diff)
downloadbarebox-dbe6452b93d2929e0d9e26f2e7d69448d74c0fe8.tar.gz
barebox-dbe6452b93d2929e0d9e26f2e7d69448d74c0fe8.tar.xz
commands: miitool: Constify 'phydevname' in mdiobus_show()
It seems like mdiobus_show() doesn't need more than read-only to 'phydevname', so constify it to allow passing const stings in. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/miitool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/miitool.c b/commands/miitool.c
index 07bce18651..1a46037f29 100644
--- a/commands/miitool.c
+++ b/commands/miitool.c
@@ -225,7 +225,8 @@ static int show_basic_mii(struct mii_bus *mii, struct phy_device *phydev,
return 0;
}
-static void mdiobus_show(struct device_d *dev, char *phydevname, int verbose)
+static void mdiobus_show(struct device_d *dev, const char *phydevname,
+ int verbose)
{
struct mii_bus *mii = to_mii_bus(dev);
int i;