CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2014/12/11 11:39:28
Modified files:
sys/dev/usb : ucycom.c ugold.c uhid.c uhidev.c uhidev.h
ukbd.c uoak_subr.c upd.c uthum.c utrh.c
utwitch.c
Log message:
Change uhidev(4) set/get report functions in various way.
Always pass the parent uhidev(4) descriptor corresponding to the single
USB device with multiple reportIDs instead of a child.
Make uhidev_get_report() aware of non NUL reportID by prepending a byte
to the given buffer, just like uhidev_set_report{,async}() already do.
Return the number of bytes written or read upon success and -1 otherwise.
This allow callers to deal with short reads without having do mess with
xfer error codes madness.
Reviewed and tested by David Higgs.