aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_ugen20.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-06-12 16:07:06 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-06-12 16:07:06 +0000
commit4315b3c95d598b83b39e26259ed4ad539713048f (patch)
tree6cd4c793454756fdc7f059e54ee9edb4b2297ffa /lib/libusb/libusb20_ugen20.c
parentfd4f10ceca491235d2b7af1560cf6b627376457c (diff)
downloadsrc-4315b3c95d598b83b39e26259ed4ad539713048f.tar.gz
src-4315b3c95d598b83b39e26259ed4ad539713048f.zip
Cleanup claim/release interface code, which is specific to libusb v0.1. Remove
claim and release interface support from libusb v2.0, because it is not useful. Submitted by: Hans Petter Selasky
Notes
Notes: svn path=/head/; revision=194069
Diffstat (limited to 'lib/libusb/libusb20_ugen20.c')
-rw-r--r--lib/libusb/libusb20_ugen20.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/libusb/libusb20_ugen20.c b/lib/libusb/libusb20_ugen20.c
index 219e6e7e0769..f130b1f86dbc 100644
--- a/lib/libusb/libusb20_ugen20.c
+++ b/lib/libusb/libusb20_ugen20.c
@@ -67,8 +67,6 @@ const struct libusb20_backend_methods libusb20_ugen20_backend = {
static libusb20_get_config_desc_full_t ugen20_get_config_desc_full;
static libusb20_get_config_index_t ugen20_get_config_index;
static libusb20_set_config_index_t ugen20_set_config_index;
-static libusb20_claim_interface_t ugen20_claim_interface;
-static libusb20_release_interface_t ugen20_release_interface;
static libusb20_set_alt_index_t ugen20_set_alt_index;
static libusb20_reset_device_t ugen20_reset_device;
static libusb20_set_power_mode_t ugen20_set_power_mode;
@@ -517,28 +515,6 @@ ugen20_set_config_index(struct libusb20_device *pdev, uint8_t cfg_index)
}
static int
-ugen20_claim_interface(struct libusb20_device *pdev, uint8_t iface_index)
-{
- int temp = iface_index;
-
- if (ioctl(pdev->file_ctrl, USB_CLAIM_INTERFACE, &temp)) {
- return (LIBUSB20_ERROR_OTHER);
- }
- return (0);
-}
-
-static int
-ugen20_release_interface(struct libusb20_device *pdev, uint8_t iface_index)
-{
- int temp = iface_index;
-
- if (ioctl(pdev->file_ctrl, USB_RELEASE_INTERFACE, &temp)) {
- return (LIBUSB20_ERROR_OTHER);
- }
- return (0);
-}
-
-static int
ugen20_set_alt_index(struct libusb20_device *pdev,
uint8_t iface_index, uint8_t alt_index)
{