Revert previous commit as it's causing panic when devices are detached
authorratchov <ratchov@openbsd.org>
Sat, 30 Oct 2021 11:56:19 +0000 (11:56 +0000)
committerratchov <ratchov@openbsd.org>
Sat, 30 Oct 2021 11:56:19 +0000 (11:56 +0000)
ok sthen, anton

sys/dev/usb/uhidev.h

index 84730ca..6ce75b1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uhidev.h,v 1.33 2021/10/29 15:43:55 anton Exp $       */
+/*     $OpenBSD: uhidev.h,v 1.34 2021/10/30 11:56:19 ratchov Exp $     */
 /*     $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $   */
 
 /*
@@ -80,9 +80,9 @@ struct uhidev {
 struct uhidev_attach_arg {
        struct usb_attach_arg   *uaa;
        struct uhidev_softc     *parent;
-       u_int                    reportid;
-#define        UHIDEV_CLAIM_MULTIPLE_REPORTID  256
-       u_int                    nreports;
+       uint8_t                  reportid;
+#define        UHIDEV_CLAIM_MULTIPLE_REPORTID  255
+       uint8_t                  nreports;
        uint8_t                 *claimed;
 };