Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: thrustmaster: Add sparco wheel and fix array length

Add device id for the Sparco R383 Mod wheel.

Fix wheel info array length to match actual wheel count present in the array.

Signed-off-by: Michael Hübner <michaelh.95@t-online.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Michael Hübner and committed by
Jiri Kosina
d9a17651 e1fa0767

+2 -1
+2 -1
drivers/hid/hid-thrustmaster.c
··· 67 67 {0x0200, 0x0005, "Thrustmaster T300RS (Missing Attachment)"}, 68 68 {0x0206, 0x0005, "Thrustmaster T300RS"}, 69 69 {0x0209, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"}, 70 + {0x020a, 0x0005, "Thrustmaster T300RS (Sparco R383 Mod)"}, 70 71 {0x0204, 0x0005, "Thrustmaster T300 Ferrari Alcantara Edition"}, 71 72 {0x0002, 0x0002, "Thrustmaster T500RS"} 72 73 //{0x0407, 0x0001, "Thrustmaster TMX"} 73 74 }; 74 75 75 - static const uint8_t tm_wheels_infos_length = 4; 76 + static const uint8_t tm_wheels_infos_length = 7; 76 77 77 78 /* 78 79 * This structs contains (in little endian) the response data