xhci: add xhci_port_have_device
commit6a32f80f056b577d275268e4f6f3477ba721c94f
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Oct 2012 08:15:47 +0000 (26 10:15 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 12:10:09 +0000 (1 13:10 +0100)
tree3d5a2be1e7707ab86d49aea9cb3de29463c3f674
parentf321402785f443d7b95e746aae686e28d74e344c
xhci: add xhci_port_have_device

Factor out the code which checks whenever a usb device is attached
to the port in question.  No functional change.

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