summaryrefslogtreecommitdiffstats
path: root/include/usbhost
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-05-12 08:53:49 -0400
committerMike Lockwood <lockwood@android.com>2010-05-12 08:53:49 -0400
commit5e567cb34b5e54467f501fc9703db82ca6639ff3 (patch)
tree36c0a778b205cc45d6c4593f0090231dece5972f /include/usbhost
parente380c27e9fdca66fa2f4aa9fd599568c568fc33d (diff)
downloadcore-5e567cb34b5e54467f501fc9703db82ca6639ff3.tar.gz
core-5e567cb34b5e54467f501fc9703db82ca6639ff3.tar.bz2
core-5e567cb34b5e54467f501fc9703db82ca6639ff3.zip
libusbhost: add usb_endpoint_get_device()
Change-Id: Ibe4ce0551faca5d2d8bec0fbd21315a393b9f208 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/usbhost')
-rw-r--r--include/usbhost/usbhost.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index 29b6ea356..c2387e592 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -126,6 +126,9 @@ int usb_endpoint_wait(struct usb_device *device, int *out_ep_num);
/* Cancels a pending usb_endpoint_queue() operation on an endpoint. */
int usb_endpoint_cancel(struct usb_endpoint *ep);
+/* Returns the usb_device for the given endpoint */
+struct usb_device *usb_endpoint_get_device(struct usb_endpoint *ep);
+
/* Returns the endpoint address for the given endpoint */
int usb_endpoint_number(struct usb_endpoint *ep);