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>
This commit is contained in:

committed by
David S. Miller

parent
e56ce5161b
commit
f7ce91038d
@@ -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++);
|
||||
|
Reference in New Issue
Block a user