diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 16:43:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-22 15:56:53 +0200 |
commit | d9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a (patch) | |
tree | a040e8b174a2b0de16b45a887e1bc71b85922772 /drivers/usb/core | |
parent | 9acd6b2a343d3ed4731468747632af0f3d644369 (diff) | |
download | linux-stable-d9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a.tar.gz linux-stable-d9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a.tar.bz2 linux-stable-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 <robh@kernel.org>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/ledtrig-usbport.c | 4 | ||||
-rw-r--r-- | drivers/usb/core/sysfs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/ledtrig-usbport.c b/drivers/usb/core/ledtrig-usbport.c index 16c19a31dad1..5e265882ad2a 100644 --- a/drivers/usb/core/ledtrig-usbport.c +++ b/drivers/usb/core/ledtrig-usbport.c @@ -149,8 +149,8 @@ static bool usbport_trig_port_observed(struct usbport_trig_data *usbport_data, count = of_count_phandle_with_args(led_np, "trigger-sources", "#trigger-source-cells"); if (count < 0) { - dev_warn(dev, "Failed to get trigger sources for %s\n", - led_np->full_name); + dev_warn(dev, "Failed to get trigger sources for %pOF\n", + led_np); return false; } 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 |