xhci: Add xhci_epid_to_usbep helper function
authorHans de Goede <hdegoede@redhat.com>
Tue, 17 Sep 2013 19:44:50 +0000 (21:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Sep 2013 09:28:40 +0000 (11:28 +0200)
commit518ad5f2a0754f0a5ce4e478b79f4926ce46111b
tree00b66788cc0c8b2362edafcb3b97a6b67088d205
parent4c5d82ecf1e8fd0720137f7d09fc77d65b51b4d0
xhci: Add xhci_epid_to_usbep helper function

And use it instead of prying the USBEndpoint out of the packet struct
in various places.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c