HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e support to hid-corsair
authorOscar Campos <oscar.campos@member.fsf.org>
Mon, 6 Mar 2017 21:02:39 +0000 (21:02 +0000)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Mar 2017 13:46:15 +0000 (14:46 +0100)
commit01adc47e885f1127b29d76d0dfb21d8262f9d6b4
treee1159d7b28fc88b9256a77848c46fdd38aed45a5
parentdeaba636997557fce46ca7bcb509bff5ea1b0558
HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e support to hid-corsair

This mouse sold by Corsair as Scimitar PRO RGB defines two consecutive
Logical Minimum items in its Application (Consumer.0001) report making
it non parseable. This patch fixes the report descriptor overriding
byte 77 in rdesc from 0x16 (Logical Minimum with 16 bits value) to 0x26
(Logical Maximum with 16 bits value).

Signed-off-by: Oscar Campos <oscar.campos@member.fsf.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-core.c
drivers/hid/hid-corsair.c