doc: correction of LIBUSB_OPTION_WEAK_AUTHORITY availability
authorIhor Dutchak <ihor.youw@gmail.com>
Fri, 21 May 2021 12:32:24 +0000 (15:32 +0300)
committerNathan Hjelm <hjelmn@google.com>
Sun, 6 Jun 2021 18:25:02 +0000 (12:25 -0600)
Even though its implementation is in linux/usbfs,
in fact it is under `ifdef` and only used by Android builds.

Closes #916

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/libusb.h
libusb/version_nano.h

index d2dfa20..57ca58f 100644 (file)
@@ -2102,10 +2102,10 @@ enum libusb_option {
         * scan devices in libusb_init.
         *
         * This option should be set before calling libusb_init(), otherwise
-        * libusb_init will failed. Normally libusb_wrap_sys_device need set
-        * this option.
+        * libusb_init will failed. Normally libusb_wrap_sys_device on Android
+        * need set this option.
         *
-        * Only valid on Linux-based operating system, such as Android.
+        * Only valid for Android builds.
         */
        LIBUSB_OPTION_WEAK_AUTHORITY = 2
 };
index 9db83c0..d44ba57 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11618
+#define LIBUSB_NANO 11619