]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] USB: Store port number in usb_device
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 23 Nov 2005 17:09:52 +0000 (12:09 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:48:35 +0000 (13:48 -0800)
commit12c3da346eb81b6a281031f62eda3bca993dff5a
tree428ac85a5ebf1564aa4254dcf625174ef36452d9
parent55c527187c9d78f840b284d596a0b298bc1493af
[PATCH] USB: Store port number in usb_device

This patch (as610) adds a field to struct usb_device to store the device's
port number.  This allows us to remove several loops in the hub driver
(searching for a particular device among all the entries in the parent's
array of children).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c
drivers/usb/core/usb.c
include/linux/usb.h