-/* $OpenBSD: hid.c,v 1.4 2022/05/20 05:02:47 anton Exp $ */
+/* $OpenBSD: hid.c,v 1.5 2022/05/20 05:03:45 anton Exp $ */
/* $NetBSD: hid.c,v 1.23 2002/07/11 21:14:25 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/hid.c,v 1.11 1999/11/17 22:33:39 n_hibma Exp $ */
* Only copy HID item, increment position and return
* if correct kind!
*/
- if (s->kind == hid_none || s->kind == c->kind) {
+ if (s->kind == hid_all || s->kind == c->kind) {
*h = *c;
DPRINTF("%u,%u,%u\n", h->loc.pos,
h->loc.size, h->loc.count);
struct hid_item hi;
uint32_t coll_usage = ~0;
- hd = hid_start_parse(desc, size, hid_none);
+ hd = hid_start_parse(desc, size, hid_all);
DPRINTF("%s: id=%d usage=0x%x\n", __func__, id, usage);
while (hid_get_item(hd, &hi)) {
-/* $OpenBSD: hid.h,v 1.9 2021/09/01 10:41:39 anton Exp $ */
+/* $OpenBSD: hid.h,v 1.10 2022/05/20 05:03:45 anton Exp $ */
/* $NetBSD: hid.h,v 1.8 2002/07/11 21:14:25 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/hid.h,v 1.7 1999/11/17 22:33:40 n_hibma Exp $ */
hid_feature,
hid_collection,
hid_endcollection,
- hid_none
+ hid_all
};
struct hid_location {
-/* $OpenBSD: ihidev.c,v 1.26 2022/04/06 18:59:28 naddy Exp $ */
+/* $OpenBSD: ihidev.c,v 1.27 2022/05/20 05:03:45 anton Exp $ */
/*
* HID-over-i2c driver
*
maxid = -1;
h.report_ID = 0;
- for (d = hid_start_parse(buf, len, hid_none); hid_get_item(d, &h); )
+ for (d = hid_start_parse(buf, len, hid_all); hid_get_item(d, &h);)
if (h.report_ID > maxid)
maxid = h.report_ID;
hid_end_parse(d);
-/* $OpenBSD: uhidev.c,v 1.107 2022/03/21 12:18:52 thfr Exp $ */
+/* $OpenBSD: uhidev.c,v 1.108 2022/05/20 05:03:45 anton Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
maxid = -1;
h.report_ID = 0;
- for (d = hid_start_parse(buf, len, hid_none); hid_get_item(d, &h); )
+ for (d = hid_start_parse(buf, len, hid_all); hid_get_item(d, &h);)
if (h.report_ID > maxid)
maxid = h.report_ID;
hid_end_parse(d);