diff options
| author | 2022-01-17 23:26:17 -0800 | |
|---|---|---|
| committer | 2022-02-14 10:50:55 +0100 | |
| commit | cf5b2fb012c037fe20f617a11eb048ef70ce4b9e (patch) | |
| tree | 428b6668028477cacb0f1f75baa08ef717e616dd /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid (diff) | |
| download | linux-dev-cf5b2fb012c037fe20f617a11eb048ef70ce4b9e.tar.xz linux-dev-cf5b2fb012c037fe20f617a11eb048ef70ce4b9e.zip | |
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 <acz@semihalf.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
