summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/macio_sysfs.c
diff options
context:
space:
mode:
authorRob Herring2017-07-18 23:43:12 +0200
committerMichael Ellerman2017-09-01 08:42:52 +0200
commitb6a945ae03fd3962b51b27ecedf4f1dd7e034229 (patch)
tree1462bec56b191c6c89e641a6c442798b42eec908 /drivers/macintosh/macio_sysfs.c
parentide: pmac: Convert to using %pOF instead of full_name (diff)
downloadkernel-qcow2-linux-b6a945ae03fd3962b51b27ecedf4f1dd7e034229.tar.gz
kernel-qcow2-linux-b6a945ae03fd3962b51b27ecedf4f1dd7e034229.tar.xz
kernel-qcow2-linux-b6a945ae03fd3962b51b27ecedf4f1dd7e034229.zip
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>
Diffstat (limited to 'drivers/macintosh/macio_sysfs.c')
-rw-r--r--drivers/macintosh/macio_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/macio_sysfs.c b/drivers/macintosh/macio_sysfs.c
index 2445274f7e4b..281f5345661e 100644
--- a/drivers/macintosh/macio_sysfs.c
+++ b/drivers/macintosh/macio_sysfs.c
@@ -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);