diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-11-04 02:05:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-05 16:31:38 +0300 |
commit | 49463b7f2da1a115404b02c5533bc2c2125833a3 (patch) | |
tree | 18bf73d0a6e86bac85a3e655b9630e386d50a796 /net/dsa/slave.c | |
parent | 99feaafcdb566e8f032e7acc2a303713ad6bf196 (diff) | |
download | linux-49463b7f2da1a115404b02c5533bc2c2125833a3.tar.xz |
net: dsa: make tree index unsigned
Similarly to a DSA switch and port, rename the tree index from "tree" to
"index" and make it an unsigned int because it isn't supposed to be less
than 0.
u32 is an OF specific data used to retrieve the value and has no need to
be propagated up to the tree index.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 9b75d0ac4092..814ced75a0cc 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -55,7 +55,7 @@ void dsa_slave_mii_bus_init(struct dsa_switch *ds) ds->slave_mii_bus->read = dsa_slave_phy_read; ds->slave_mii_bus->write = dsa_slave_phy_write; snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", - ds->dst->tree, ds->index); + ds->dst->index, ds->index); ds->slave_mii_bus->parent = ds->dev; ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; } |