]> git.baikalelectronics.ru Git - kernel.git/commit
HID: elecom: add support for TrackBall 056E:011C
authorTakahiro Fujii <fujii@xaxxi.net>
Thu, 19 Jan 2023 18:30:02 +0000 (03:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:20 +0000 (11:52 +0100)
commitc7565915dea8de4d4c2a954418c309ca3a74dc8d
tree71b2e68f9fe0eedd707d95c4d780937afd1ad4ee
parent78a08f96ec45bc667b0f79affcc40020f738715f
HID: elecom: add support for TrackBall 056E:011C

[ Upstream commit abf9d6b48ac90ed456546d3acaeceb8d2962ecbd ]

Make function buttons on ELECOM M-HT1DRBK trackball mouse work. This model
has two devices with different device IDs (010D and 011C). Both of
them misreports the number of buttons as 5 in the report descriptor, even
though they have 8 buttons. hid-elecom overwrites the report to fix them,
but supports only on 010D and does not work on 011C. This patch fixes
011C in the similar way but with specialized position parameters.
In fact, it is sufficient to rewrite only 17th byte (05 -> 08). However I
followed the existing way.

Signed-off-by: Takahiro Fujii <fujii@xaxxi.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-elecom.c
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c