summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi_util.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-02 12:23:59 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-02 12:23:59 +0000
commit6b22f0ec5966fbb214e9e77a48b073c56abd34d6 (patch)
tree90101e5bf2bab87b6139e0c3530f5fa6be325e1b /sys/dev/usb/usbdi_util.c
parent033c8a289ea6e79e8060870a3ae5291dfbb6ec92 (diff)
Remove a layer of abstraction for fetching a configuration descriptor.
Diffstat (limited to 'sys/dev/usb/usbdi_util.c')
-rw-r--r--sys/dev/usb/usbdi_util.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c
index 4c12cde6a27..9029e8978d0 100644
--- a/sys/dev/usb/usbdi_util.c
+++ b/sys/dev/usb/usbdi_util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi_util.c,v 1.32 2013/09/20 15:34:51 mpi Exp $ */
+/* $OpenBSD: usbdi_util.c,v 1.33 2013/11/02 12:23:58 mpi Exp $ */
/* $NetBSD: usbdi_util.c,v 1.40 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi_util.c,v 1.14 1999/11/17 22:33:50 n_hibma Exp $ */
@@ -70,26 +70,6 @@ usbd_get_desc(struct usbd_device *dev, int type, int index, int len, void *desc)
}
usbd_status
-usbd_get_config_desc(struct usbd_device *dev, int confidx,
- usb_config_descriptor_t *d)
-{
- usbd_status err;
-
- DPRINTFN(3,("usbd_get_config_desc: confidx=%d\n", confidx));
- err = usbd_get_desc(dev, UDESC_CONFIG, confidx,
- USB_CONFIG_DESCRIPTOR_SIZE, d);
- if (err)
- return (err);
- if (d->bDescriptorType != UDESC_CONFIG) {
- DPRINTFN(-1,("usbd_get_config_desc: confidx=%d, bad desc "
- "len=%d type=%d\n", confidx, d->bLength,
- d->bDescriptorType));
- return (USBD_INVAL);
- }
- return (USBD_NORMAL_COMPLETION);
-}
-
-usbd_status
usbd_get_device_status(struct usbd_device *dev, usb_status_t *st)
{
usb_device_request_t req;