diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 23:43:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-24 22:41:48 +0200 |
commit | f7ce91038d52780060ccb0d7ee6dd48967b3e132 (patch) | |
tree | e947e070a78d3c469617d6bdaf5d37764c256411 /drivers/net/dsa | |
parent | Merge branch 'virtio_net-xdp-refine' (diff) | |
download | linux-f7ce91038d52780060ccb0d7ee6dd48967b3e132.tar.xz linux-f7ce91038d52780060ccb0d7ee6dd48967b3e132.zip |
net: Convert to using %pOF instead of full_name
Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 7fa19d4a8e13..647d5d45c1d6 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -2242,7 +2242,7 @@ static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, if (np) { bus->name = np->full_name; - snprintf(bus->id, MII_BUS_ID_SIZE, "%s", np->full_name); + snprintf(bus->id, MII_BUS_ID_SIZE, "%pOF", np); } else { bus->name = "mv88e6xxx SMI"; snprintf(bus->id, MII_BUS_ID_SIZE, "mv88e6xxx-%d", index++); |