]> git.baikalelectronics.ru Git - kernel.git/commit
USB: of: clean up device-node helper
authorJohan Hovold <johan@kernel.org>
Thu, 9 Nov 2017 17:07:23 +0000 (18:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:12:38 +0000 (15:12 +0100)
commit71d05686e00e995638ef395c6b792677fa2a5672
tree92bd0a2f9e3d87809c83e92e55d87c7d13f943e4
parentefdc3c17b35d14c00b4b4294f8e507dc7e71711e
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>
drivers/usb/core/ledtrig-usbport.c
drivers/usb/core/of.c
drivers/usb/core/usb.c
include/linux/usb/of.h