hmt(4): Do not ignore constant usages in HID report descriptor parser
This fixes hmt to work with MELF0411 1FD2:7012 touchscreen Obtained from: sysutils/iichid MFC after: 1 week
This commit is contained in:
parent
be75951af1
commit
cb910670ac
@ -676,8 +676,8 @@ hmt_hid_parse(struct hmt_softc *sc, const void *d_ptr, hid_size_t d_len,
|
||||
bool scan_time_found = false;
|
||||
bool has_int_button = false;
|
||||
|
||||
#define HMT_HI_ABSOLUTE(hi) \
|
||||
(((hi).flags & (HIO_CONST|HIO_VARIABLE|HIO_RELATIVE)) == HIO_VARIABLE)
|
||||
#define HMT_HI_ABSOLUTE(hi) ((hi).nusages != 0 && \
|
||||
((hi).flags & (HIO_VARIABLE | HIO_RELATIVE)) == HIO_VARIABLE)
|
||||
#define HUMS_THQA_CERT 0xC5
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user