aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/sysfs.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-07-18 21:43:35 +0000
committerGreg Kroah-Hartman <[email protected]>2017-07-22 13:56:53 +0000
commitd9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a (patch)
treea040e8b174a2b0de16b45a887e1bc71b85922772 /drivers/usb/core/sysfs.c
parentUSB: atm: remove unneeded MODULE_VERSION() usage (diff)
downloadkernel-d9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a.tar.gz
kernel-d9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a.zip
usb: 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 <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/sysfs.c')
-rw-r--r--drivers/usb/core/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index dfc68ed24db1..d930bfda4010 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -113,7 +113,7 @@ static ssize_t devspec_show(struct device *dev, struct device_attribute *attr,
{
struct device_node *of_node = dev->of_node;
- return sprintf(buf, "%s\n", of_node_full_name(of_node));
+ return sprintf(buf, "%pOF\n", of_node);
}
static DEVICE_ATTR_RO(devspec);
#endif