Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp437841rwe; Thu, 25 Aug 2022 03:14:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6KvDdg1M1lRKT2p0Eg/bpcFMFWWeqF38b+zvuP32z5U0EQUAeAJKfflFhtTgP6MxCrsQVB X-Received: by 2002:a63:1913:0:b0:41d:10af:1b23 with SMTP id z19-20020a631913000000b0041d10af1b23mr2639656pgl.485.1661422477307; Thu, 25 Aug 2022 03:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661422477; cv=none; d=google.com; s=arc-20160816; b=MCfgns1m/zgpm9WTpt0mz3DT+QZOdtrsefFPIxw/AhNvbWSbnsHpKl2XQh4Kk0kYwO mwFY5UFBxEs2gqvIio1iHjKZXvbTuSJMcS0GWZ1IUVvKIXIqd5NAyenPzCtg1izhji3q s8OPS+rQU6Bqo4wt8O45cXYSsjWa1+gRWc7fDoM0s7G+Nnr8A0ksg+Edkxf7k4S+EktU tR1Buvbc9BWxOT6XGPxLInin/xh0xdUkAZIURxpGt3M7IaEs9NeIHdiroMRb/V3BW2A/ Q6HuLzKDlMWwVFDctxz5p7NfqAJPW18A6dLnEUKOSzIijkOddKSBLVqmT3hxcfZPuRsS tEng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=lSO1vjr0GqJhVVq/l3D4XGdC4m1KdCj7vtL9NwblUbc=; b=gjQtNw3R/FjTzcEw60iHZ/rOJl8NpzTbgx6tyYuXbWUL2q0CizDJjOPp/L63y+/2jd lx8P6tjaGmiB1MSZFScVEFTzh8a6jQXYQtwPwRUb7FExnzLQWs8qb81bXtsIIMqdYe2z o4fII5lU4fyfLZcNYTSfiHck4tbNlSwaF51QQeLZdpMsESzu1Iwt7sKkv0Bg9dRyh4DQ 1lTL/2e8fLCsbD/cXNkk0sWtZaD76ux0lCsWjVHlfWZ1sIIGpI5OuiEUCHivwoXBi9j2 q5OyIIiTLg/w8s3m8EUX39IasR5X4AerzXjC6OC7+iCB9Yv8p4HncrO0yUn6DqKbIi+c QEcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZQ5MAlm8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902a60100b001733ac4ee96si281867plq.533.2022.08.25.03.14.25; Thu, 25 Aug 2022 03:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZQ5MAlm8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238494AbiHYJj5 (ORCPT + 99 others); Thu, 25 Aug 2022 05:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbiHYJj4 (ORCPT ); Thu, 25 Aug 2022 05:39:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D29C183B7; Thu, 25 Aug 2022 02:39:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 291A961BBB; Thu, 25 Aug 2022 09:39:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70F62C433D7; Thu, 25 Aug 2022 09:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661420394; bh=5ZGuhl467YXl3FnhjE/K17DNeKWgeRkOxoUhyTorpYM=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=ZQ5MAlm8kqOJCTeoWw8xbxNfobekxp0bk5dVSZBhgcMhRi/67ddg6D3dyg/YUbQJI nKCvA2+nKMSkwN47v6qG1GxLx+Nv4r+5UGivQE8CplDMnJH6So/B9zlp724xdpDHXC KxsRfIE0xQqzkoC2QeNfdviTrRsK10EfGxdXhd2IzCU6SvsiXwagksPSzhAY9WRcus KRISNQ95B2ICcqk6jFn6BOXrz1eDbTJFPvj9U/NdwqtuPph+2B8PnoP0nLjrz3mpBB WGANn49P3THIctm/AHDD0fX1pK5ouDJAvbaNbUDRO1YIedlbwBUMRwBlwV8r5PIUp8 zTIiAlIVDtskA== Date: Thu, 25 Aug 2022 11:39:51 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?Michael_H=FCbner?= cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, benjamin.tissoires@redhat.com Subject: Re: [PATCH] HID: thrustmaster: Add sparco wheel and fix array length In-Reply-To: <0e9a1a9a9354467cee54714ce08396d4ffdf7738.camel@t-online.de> Message-ID: References: <0e9a1a9a9354467cee54714ce08396d4ffdf7738.camel@t-online.de> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Aug 2022, Michael Hübner wrote: > >From c17f6bb769531d143b84d19f32f2961f737ca845 Mon Sep 17 00:00:00 2001 > From: Michael Hübner > Date: Fri, 5 Aug 2022 10:05:23 +0200 > Subject: [PATCH] HID: thrustmaster: Add sparco wheel and fix array length > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > 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 > --- > 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 c3e6d69fdfbd..cf1679b0d4fb 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; Applied, thanks. -- Jiri Kosina SUSE Labs