summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-12-11 18:39:29 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-12-11 18:39:29 +0000
commit477855b2148747cf0d884fbb75161e499ca2e59b (patch)
tree355e99d084405d2b06ae181119aaf6f669ff74ee /sys/dev/usb/if_axe.c
parenta43ef9f4e1de588a8b9d1d58f293c60cc514c11a (diff)
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.
Diffstat (limited to 'sys/dev/usb/if_axe.c')
0 files changed, 0 insertions, 0 deletions