]> git.baikalelectronics.ru Git - kernel.git/commit
HID: elecom: rewrite report fixup for EX-G and future mice
authorTomasz Kramkowski <tk@the-tk.com>
Tue, 19 Dec 2017 20:44:36 +0000 (20:44 +0000)
committerJiri Kosina <jkosina@suse.cz>
Tue, 23 Jan 2018 14:39:54 +0000 (15:39 +0100)
commit537bd817644133be7ce6203669465138b644b6c7
treed30d16919497e8048d43368c78a33691cf1521d9
parent09721b54de95f20cb8739331defdb5552bbcd221
HID: elecom: rewrite report fixup for EX-G and future mice

This patch rewrites the mouse report fixup used for the DEFT and HUGE
elecom trackballs in order to make it generic enough to fix other
elecom mice with similar issues. This patch also uses this new report
fixup function to fix the Elecom EX-G trackball which has 6 physical
buttons and a similar issue to the other two mice.

Elecom's track record has so far shown that they like to re-use the
same report descriptor for multiple different mice regardless of the
number of buttons the mouse has. This means that the missing buttons
on multiple mice can be fixed in one function without introducing
phantom buttons which would in turn cause the number of mouse buttons
to be misreported to userspace.

This patch drops the very verbose report descriptor "diff" comment for
a more abridged yet hopefully just as informative generic version.

Signed-off-by: Tomasz Kramkowski <tk@the-tk.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-elecom.c
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c