summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
authorjcs <jcs@openbsd.org>2018-08-25 18:32:05 +0000
committerjcs <jcs@openbsd.org>2018-08-25 18:32:05 +0000
commit253b28d04b9c6635c4d2e127060005b0bf7c3471 (patch)
treee363eddb757cc16040bc17b514ab4d9bf8694901 /sys/dev/pci/drm/drm_linux.c
parentregen (diff)
downloadwireguard-openbsd-253b28d04b9c6635c4d2e127060005b0bf7c3471.tar.xz
wireguard-openbsd-253b28d04b9c6635c4d2e127060005b0bf7c3471.zip
Move HID->bus constant conversion for HID report types out of ihidev
into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
0 files changed, 0 insertions, 0 deletions