On Mon, 14 May 2012, Lan Tianyu wrote: > Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx> > --- > drivers/usb/core/hub.c | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c > index 6bf7124..6f909db 100644 > --- a/drivers/usb/core/hub.c > +++ b/drivers/usb/core/hub.c > @@ -4236,6 +4236,20 @@ void usb_queue_reset_device(struct usb_interface *iface) > } > EXPORT_SYMBOL_GPL(usb_queue_reset_device); > > +/** > + * usb_get_hub_child_device - Get the pointer of child device > + * attached to the port which is specified by @port1. > + * This blank line should be removed. The parameter definitions are supposed to appear immediately after the function description. Alan Stern > + * @hdev: USB device belonging to the usb hub > + * @port1: port num to indicate which port the child device > + * is attached to. > + * > + * USB drivers call this function to get hub's child device > + * pointer. > + * > + * Return NULL if input param is invalid and > + * child's usb_device pointer if non-NULL. > + */ > struct usb_device *usb_get_hub_child_device(struct usb_device *hdev, > int port1) > { -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html