]> git.baikalelectronics.ru Git - kernel.git/commit
usb: move struct usb_device->children to struct usb_hub_port->child
authorLan Tianyu <tianyu.lan@intel.com>
Fri, 11 May 2012 08:08:30 +0000 (16:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 00:08:41 +0000 (17:08 -0700)
commita644c1a310152c33af24717a2cb4b7da99d8e0f4
treee24d45842809c559c98abb6fb6b2db1445264220
parente564c56ecccaee2988f4bd2d434dac1d1d86826f
usb: move struct usb_device->children to struct usb_hub_port->child

Move child's pointer to the struct usb_hub_port since the child device
is directly associated with the port. Provide usb_get_hub_child_device()
to get child's pointer.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/usbip_common.c
drivers/usb/core/devices.c
drivers/usb/core/hub.c
drivers/usb/host/r8a66597-hcd.c
include/linux/usb.h