[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    HID: thrustmaster: Add sparco wheel and fix array length
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2022-08-31 17:19:59
Message-ID: git-mailbomb-linux-master-d9a17651f3749e69890db57ca66e677dfee70829 () kernel ! org
[Download RAW message or body]

Commit:     d9a17651f3749e69890db57ca66e677dfee70829
Parent:     e1fa076706209cc447d7a2abd0843a18277e5ef7
Refname:    refs/heads/master
Web:        https://git.kernel.org/torvalds/c/d9a17651f3749e69890db57ca66e677dfee70829
Author:     Michael Hübner <michaelh.95@t-online.de>
AuthorDate: Fri Aug 5 10:05:23 2022 +0200
Committer:  Jiri Kosina <jkosina@suse.cz>
CommitDate: Thu Aug 25 11:38:55 2022 +0200

    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>
---
 drivers/hid/hid-thrustmaster.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/hid/hid-thrustmaster.c b/drivers/hid/hid-thrustmaster.c
index c3e6d69fdfbd9..cf1679b0d4fbb 100644
--- a/drivers/hid/hid-thrustmaster.c
+++ b/drivers/hid/hid-thrustmaster.c
@@ -67,12 +67,13 @@ static const struct tm_wheel_info tm_wheels_infos[] = {
 	{0x0200, 0x0005, "Thrustmaster T300RS (Missing Attachment)"},
 	{0x0206, 0x0005, "Thrustmaster T300RS"},
 	{0x0209, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"},
+	{0x020a, 0x0005, "Thrustmaster T300RS (Sparco R383 Mod)"},
 	{0x0204, 0x0005, "Thrustmaster T300 Ferrari Alcantara Edition"},
 	{0x0002, 0x0002, "Thrustmaster T500RS"}
 	//{0x0407, 0x0001, "Thrustmaster TMX"}
 };
 
-static const uint8_t tm_wheels_infos_length = 4;
+static const uint8_t tm_wheels_infos_length = 7;
 
 /*
  * This structs contains (in little endian) the response data
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic