summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/ledtrig-usbport.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-11-09 18:07:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 15:12:38 +0100
commit7739376eb1ed68593805e5b4ed359123d0718549 (patch)
tree92bd0a2f9e3d87809c83e92e55d87c7d13f943e4 /drivers/usb/core/ledtrig-usbport.c
parent03310a15484ab6a8f6d91bbf7fe486b17275c09a (diff)
downloadlinux-7739376eb1ed68593805e5b4ed359123d0718549.tar.bz2
USB: of: clean up device-node helper
Clean up the USB device-node helper that is used to look up a device node given a parent hub device and a port number. Also pass in a struct usb_device as first argument to provide some type checking. Give the helper the more descriptive name usb_of_get_device_node(), which matches the new usb_of_get_interface_node() helper that is used to look up a second type of of child node from a USB device. Note that the terms "device node" and "interface node" are defined and used by the OF Recommended Practice for USB. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/ledtrig-usbport.c')
-rw-r--r--drivers/usb/core/ledtrig-usbport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/ledtrig-usbport.c b/drivers/usb/core/ledtrig-usbport.c
index f1fde5165068..d775ffea20c3 100644
--- a/drivers/usb/core/ledtrig-usbport.c
+++ b/drivers/usb/core/ledtrig-usbport.c
@@ -142,7 +142,7 @@ static bool usbport_trig_port_observed(struct usbport_trig_data *usbport_data,
*
* FIXME: This is really the device node of the connected device
*/
- port_np = usb_of_get_child_node(usb_dev->dev.of_node, port1);
+ port_np = usb_of_get_device_node(usb_dev, port1);
if (!port_np)
return false;