uhid_maxrepid() is currently not able to observe all report IDs as it
authoranton <anton@openbsd.org>
Fri, 20 May 2022 05:02:47 +0000 (05:02 +0000)
committeranton <anton@openbsd.org>
Fri, 20 May 2022 05:02:47 +0000 (05:02 +0000)
commitcccc4d6c92b38703ce1bbaa3df7f3b643c1266e6
treed0c41afb66c574065594ab583f25398df295d95a
parentd502889132413a260e1bec5902269b1ea31d64cb
uhid_maxrepid() is currently not able to observe all report IDs as it
passes hid_none as the wanted hid kind to hid_start_parse(). This
becomes a problem for descriptors with multiple report IDs per
collection. Therefore change the semantics of the hid_none kind to let
it represents all possible kinds.

Gets rid of "uhidev_intr: bad repid" console spam as reported by sthen@
on bugs@.

Have been in snaps for a week.
sys/dev/hid/hid.c