diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-26 14:19:26 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-26 14:19:26 +0000 |
commit | db2a7b2d77b383b74d938a744d0c509211d26cca (patch) | |
tree | a42c40102a1cd3d57fc0d6b554c410bbb741e5f0 /sys | |
parent | d7f136df0833a2dc43f48678711c3eb1a16d726b (diff) |
Remove unused and ambiguous usbd_get_interface() function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usbdi.c | 15 | ||||
-rw-r--r-- | sys/dev/usb/usbdi.h | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 7fdec250bf9..1f7b9594236 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi.c,v 1.54 2013/04/26 14:05:24 mpi Exp $ */ +/* $OpenBSD: usbdi.c,v 1.55 2013/04/26 14:19:25 mpi Exp $ */ /* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */ @@ -713,19 +713,6 @@ usbd_get_interface_altindex(struct usbd_interface *iface) return (iface->altindex); } -usbd_status -usbd_get_interface(struct usbd_interface *iface, u_int8_t *aiface) -{ - usb_device_request_t req; - - req.bmRequestType = UT_READ_INTERFACE; - req.bRequest = UR_GET_INTERFACE; - USETW(req.wValue, 0); - USETW(req.wIndex, iface->idesc->bInterfaceNumber); - USETW(req.wLength, 1); - return (usbd_do_request(iface->device, &req, aiface)); -} - /*** Internal routines ***/ /* Called at splusb() */ diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index f6ecb31a60f..5b7214fe5ea 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi.h,v 1.52 2013/04/26 14:11:18 mpi Exp $ */ +/* $OpenBSD: usbdi.h,v 1.53 2013/04/26 14:19:25 mpi Exp $ */ /* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */ @@ -130,7 +130,6 @@ usb_config_descriptor_t *usbd_get_config_descriptor(struct usbd_device *dev); usb_device_descriptor_t *usbd_get_device_descriptor(struct usbd_device *dev); usbd_status usbd_set_interface(struct usbd_interface *, int); int usbd_get_no_alts(usb_config_descriptor_t *, int); -usbd_status usbd_get_interface(struct usbd_interface *iface, u_int8_t *aiface); void usbd_fill_deviceinfo(struct usbd_device *, struct usb_device_info *, int); usb_config_descriptor_t *usbd_get_cdesc(struct usbd_device *, int, int *); int usbd_get_interface_altindex(struct usbd_interface *iface); |