aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-06-16 14:26:04 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-06-16 14:26:04 +0000
commit5b40d9601c72fbb04f32437d529dbf51252dc31e (patch)
tree4d526c30986644cb58497ef2990bd8713ab7da91 /lib/libusb/libusb20.c
parent86bd190ce91e7fe8b020fc7c8603fdaafaf6af3c (diff)
downloadsrc-5b40d9601c72fbb04f32437d529dbf51252dc31e.tar.gz
src-5b40d9601c72fbb04f32437d529dbf51252dc31e.zip
Add support for libusb_set_auto_detach_kernel_driver() to the LibUSB v1.0 API.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
Notes
Notes: svn path=/head/; revision=301966
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r--lib/libusb/libusb20.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c
index 2eb75f1c6d7c..2f4ee780cabc 100644
--- a/lib/libusb/libusb20.c
+++ b/lib/libusb/libusb20.c
@@ -601,6 +601,12 @@ libusb20_dev_close(struct libusb20_device *pdev)
*/
pdev->claimed_interface = 0;
+ /*
+ * The following variable is only used by the libusb v1.0
+ * compat layer:
+ */
+ pdev->auto_detach = 0;
+
return (error);
}