usb hub: use new descriptor infrastructure.
commit062651c7e750a0c06a693d336c2b9edb893a2c94
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Nov 2010 12:13:22 +0000 (26 13:13 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jan 2011 14:56:00 +0000 (11 15:56 +0100)
tree4f37ba72c270d246c9941164bc7287782af37aa5
parent4696425cd05c7baa0a4b469d43ba4b8488bcfc0f
usb hub: use new descriptor infrastructure.

Switch the usb hub driver over to the
new descriptor infrastructure.

It also removes the nr_ports variable and MAX_PORTS define and
introduces a NUM_PORTS define instead.  The numver of ports was
(and still is) fixed at 8 anyway.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-hub.c