aboutsummaryrefslogtreecommitdiff
path: root/lib/test_bits.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-01-17 23:26:18 -0800
committerJiri Kosina <jkosina@suse.cz>2022-02-14 10:50:55 +0100
commita5e5e03e94764148a01757b2fa4737d3445c13a6 (patch)
treef7fd66d0b6374b02eeed617de5efcdcab737906f /lib/test_bits.c
parentcf5b2fb012c037fe20f617a11eb048ef70ce4b9e (diff)
HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports
Internally kernel prepends all report buffers, for both numbered and unnumbered reports, with report ID, therefore to properly handle unnumbered reports we should prepend it ourselves. For the same reason we should skip the first byte of the buffer when calling i2c_hid_set_or_send_report() which then will take care of properly formatting the transfer buffer based on its separate report ID argument along with report payload. [jkosina@suse.cz: finalize trimmed sentence in changelog as spotted by Benjamin] Fixes: 9b5a9ae88573 ("HID: i2c-hid: implement ll_driver transport-layer callbacks") 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 'lib/test_bits.c')
0 files changed, 0 insertions, 0 deletions