summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood2010-05-12 07:53:49 -0500
committerMike Lockwood2010-05-12 07:53:49 -0500
commit5e567cb34b5e54467f501fc9703db82ca6639ff3 (patch)
tree36c0a778b205cc45d6c4593f0090231dece5972f /libusbhost
parente380c27e9fdca66fa2f4aa9fd599568c568fc33d (diff)
downloadplatform-system-core-5e567cb34b5e54467f501fc9703db82ca6639ff3.tar.gz
platform-system-core-5e567cb34b5e54467f501fc9703db82ca6639ff3.tar.xz
platform-system-core-5e567cb34b5e54467f501fc9703db82ca6639ff3.zip
libusbhost: add usb_endpoint_get_device()
Change-Id: Ibe4ce0551faca5d2d8bec0fbd21315a393b9f208 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'libusbhost')
-rw-r--r--libusbhost/usbhost.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c
index d2eaf0c4e..3604a42ad 100644
--- a/libusbhost/usbhost.c
+++ b/libusbhost/usbhost.c
@@ -444,6 +444,11 @@ int usb_endpoint_cancel(struct usb_endpoint *ep)
444 return ioctl(ep->dev->fd, USBDEVFS_DISCARDURB, &ep->urb); 444 return ioctl(ep->dev->fd, USBDEVFS_DISCARDURB, &ep->urb);
445} 445}
446 446
447struct usb_device *usb_endpoint_get_device(struct usb_endpoint *ep)
448{
449 return ep->dev;
450}
451
447int usb_endpoint_number(struct usb_endpoint *ep) 452int usb_endpoint_number(struct usb_endpoint *ep)
448{ 453{
449 return ep->desc.bEndpointAddress; 454 return ep->desc.bEndpointAddress;