diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-11-22 11:30:17 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-11-22 11:30:17 +0000 |
commit | ec06ebee4829a34ff5dc48ae8e12d6ff501f9955 (patch) | |
tree | b85b84c3674474a59f115c58f8a8a9df261df481 | |
parent | b6f4b5a4c8be9a234d7d7a89fa118e23d213dc80 (diff) |
Drop the old problematic claim multiple report ids logic now that all
uhidev drivers have been fixed.
-rw-r--r-- | sys/dev/usb/uhidev.c | 6 | ||||
-rw-r--r-- | sys/dev/usb/uhidev.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index 2cf222edd68..3526e4cb86e 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.102 2021/11/22 03:30:20 jsg Exp $ */ +/* $OpenBSD: uhidev.c,v 1.103 2021/11/22 11:30:16 anton Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -249,7 +249,7 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) uha.uaa = uaa; uha.parent = sc; - uha.reportid = __UHIDEV_CLAIM_MULTIPLE_REPORTID; + uha.reportid = 0; uha.nreports = nrepid; uha.claimed = malloc(nrepid, M_TEMP, M_WAITOK|M_ZERO); @@ -361,7 +361,7 @@ uhidevprint(void *aux, const char *pnp) if (pnp) printf("uhid at %s", pnp); - if (uha->reportid != 0 && uha->reportid != __UHIDEV_CLAIM_MULTIPLE_REPORTID) + if (uha->reportid != 0) printf(" reportid %d", uha->reportid); return (UNCONF); } diff --git a/sys/dev/usb/uhidev.h b/sys/dev/usb/uhidev.h index ba07ef9f008..8960e0ec66a 100644 --- a/sys/dev/usb/uhidev.h +++ b/sys/dev/usb/uhidev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.h,v 1.39 2021/11/15 15:38:08 anton Exp $ */ +/* $OpenBSD: uhidev.h,v 1.40 2021/11/22 11:30:16 anton Exp $ */ /* $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $ */ /* @@ -80,7 +80,6 @@ struct uhidev_attach_arg { }; #define UHIDEV_CLAIM_MULTIPLE_REPORTID(u) ((u)->claimed != NULL) -#define __UHIDEV_CLAIM_MULTIPLE_REPORTID 255 /* XXX */ int uhidev_report_type_conv(int); void uhidev_get_report_desc(struct uhidev_softc *, void **, int *); |