summaryrefslogtreecommitdiffstats
path: root/libusbhost
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-13 10:15:25 -0800
committerMike Lockwood <lockwood@android.com>2010-12-13 19:08:27 -0800
commit50372073d2919480fb32d56cb3b91663b9fca0f1 (patch)
tree73546c42f478fd00bf0986a3cc4a30f12061e780 /libusbhost
parentcd185f23cc6f062b252d1d19bca55e721290ee62 (diff)
downloadcore-50372073d2919480fb32d56cb3b91663b9fca0f1.tar.gz
core-50372073d2919480fb32d56cb3b91663b9fca0f1.tar.bz2
core-50372073d2919480fb32d56cb3b91663b9fca0f1.zip
libusbhost: Add accessor for the USB device descriptor
Change-Id: Ic3a54e2a06f3b4fa72f99b64025a911fbf525daf 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 93c6dd3a8..6bdeebf23 100644
--- a/libusbhost/usbhost.c
+++ b/libusbhost/usbhost.c
@@ -325,6 +325,11 @@ uint16_t usb_device_get_product_id(struct usb_device *device)
return __le16_to_cpu(desc->idProduct);
}
+const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device)
+{
+ return (struct usb_device_descriptor*)device->desc;
+}
+
int usb_device_send_control(struct usb_device *device,
int requestType,
int request,