]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: Add Holtek USB ID 04d9:a0c2 ETEKCITY Scroll
authorJohn DeSilva <desilvjo@umich.edu>
Fri, 5 Sep 2014 15:13:17 +0000 (11:13 -0400)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 11:21:15 +0000 (13:21 +0200)
commitb938a279ee39c3df73eab6ae1106a4eadb86fecf
tree5755b972615afc82e38e2352646461d5bb96c867
parent931ffad35d636ac837d1246f2c09e737057953a3
HID: Add Holtek USB ID 04d9:a0c2 ETEKCITY Scroll

commit 5df4eb054fe056ecb15875e812fdadbc47568d7d upstream.

The report descriptor for the HOLTEK USB ID 04d9:a0c2 (ETEKCITY Scroll
T-140 Gaming Mouse) is set to a very large amount of consumer usages
(2^16), exceeding HID_MAX_USAGES. Added id, bindings and comments for
the mouse, added to hid_have_special_driver, and reduced the usage and
logical maximums to 0x2fff, consistent with the other mice in the
category. Tested on the hardware.

Signed-off-by: John C. DeSilva <desilvjo@umich.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-holtek-mouse.c
drivers/hid/hid-ids.h