diff options
author | Angela Czubak <[email protected]> | 2022-01-17 23:26:17 -0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-02-14 10:50:55 +0100 |
commit | cf5b2fb012c037fe20f617a11eb048ef70ce4b9e (patch) | |
tree | 428b6668028477cacb0f1f75baa08ef717e616dd /lib/mpi/mpi-sub-ui.c | |
parent | 9b57f458985742bd1c585f4c7f36d04634ce1143 (diff) |
HID: i2c-hid: fix handling numbered reports with IDs of 15 and above
Special handling of numbered reports with IDs of 15 and above is only
needed when executing what HID-I2C spec is calling "Class Specific
Requests", and not when simply sending output reports.
Additionally, our mangling of report ID in i2c_hid_set_or_send_report()
resulted in incorrect report ID being written into SET_REPORT command
payload.
To solve it let's move all the report ID manipulation into
__i2c_hid_command() where we form the command data structure.
Signed-off-by: Angela Czubak <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Tested-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions