CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2025/07/21 15:46:40

Modified files:
        sys/dev/hid    : hid.c hid.h hidmt.c hidmtvar.h 
        sys/dev/i2c    : imt.c 
        sys/dev/usb    : umt.c 

Log message:
imt/umt(4): Fix the match() and attach() functions.

The way imt(4) and umt(4) search for HID report IDs is broken;
hid_is_collection() is not suitable for that task.  Add a better helper
function to hid.c and adapt hidmt, imt, and umt to make use of it.

Thanks to Thomas Dettbarn for reporting the problem.

"makes (some) sense" to kettenis@

Reply via email to