macintosh: 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> [mpe: Also convert the two cases inside #if 0] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
859420e315
commit
b6a945ae03
@@ -52,7 +52,7 @@ static ssize_t devspec_show(struct device *dev,
|
||||
struct platform_device *ofdev;
|
||||
|
||||
ofdev = to_platform_device(dev);
|
||||
return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name);
|
||||
return sprintf(buf, "%pOF\n", ofdev->dev.of_node);
|
||||
}
|
||||
static DEVICE_ATTR_RO(modalias);
|
||||
static DEVICE_ATTR_RO(devspec);
|
||||
|
||||
Reference in New Issue
Block a user