Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1960347rwe; Fri, 2 Sep 2022 06:38:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bg7xtMYXMpHBQjnHr3L/D+jBYgXcGto5c9Trd2dzY6gBnZn4yo4dBdrqNBmu92yoCY5re X-Received: by 2002:a62:1d45:0:b0:53b:4d3e:e373 with SMTP id d66-20020a621d45000000b0053b4d3ee373mr2527424pfd.1.1662125881062; Fri, 02 Sep 2022 06:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662125881; cv=none; d=google.com; s=arc-20160816; b=GN+QoCJPGhURsBnGx+PhHi8oiO9IB/gbrgnbseA+81f9VoM8/bRUX7GojnpJapKqg/ DQMiLwXKEz/8l3qfZ9AxwYkfk6xTxVo1OSrSNt5DSfMTuBrd0Ih5Ie2YBDG3IYVyhHOV GYpk8iyBKxepBioD5K90YcYHpGRalg5VHZWPyZHjurmzDK9H7fARi96ytsqAPfcsjFAk W4vqVHbCe7l7XPJgUctHxYlTfuQyZJ/JOIVuZ14OAjLQsjMSDRSZ1Upjs5z/q5XLenP6 SaHTrfiDOd10pzR+yyLD6qXSbmHLU7VTVSW0KaRxDeDVoiZYpClTSfio7WskVXAtygp5 3awA== 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:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dP2dHZWGWA+MGujugO13ixBLx5GbH1xJ3ctyIiyb99Y=; b=Ms5uGUJoXdYpJ2BhBbt2pJvCMC02ah1KDDNJedebpJxob3k5pt8WqGqFgCOZ/6YmqW hgVDF5J/8xmIPK96gocKp+eOENyN86Z/iCK306SyFcZb+sshkbfXzsx0vTRV03wg2LPu wswPNgckDIHa3wLYwAyzt3n5nUvkLqZkCyoVORgQl6kuGAOwWPdBsGl+PoeDyzHFfcpi DPaH4gexxYczglCbBSQJY24I8jyD3hXnUHwHvvB3jXBBvtEzRNHXeVIRxGGFa2RqpimT 3h65dvDxE3H1dfVriMTUIsrD3AXClOHJHcgI6FSY40eTEsKNt4ZBWf1URWGF9hdFWnxB xjyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v575zYHY; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170902ccc700b00176675a687fsi1997785ple.178.2022.09.02.06.37.47; Fri, 02 Sep 2022 06:38:01 -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=@linuxfoundation.org header.s=korg header.b=v575zYHY; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238167AbiIBMzN (ORCPT + 99 others); Fri, 2 Sep 2022 08:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238021AbiIBMxb (ORCPT ); Fri, 2 Sep 2022 08:53:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 440AEE58B1; Fri, 2 Sep 2022 05:38:15 -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 ams.source.kernel.org (Postfix) with ESMTPS id 979AAB82A8B; Fri, 2 Sep 2022 12:37:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09A69C433C1; Fri, 2 Sep 2022 12:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662122239; bh=lV7mb2d2P7zCPfmJmyz0dYwCOsfkfJLOefpZXPPvb/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v575zYHYD0O6KL2SP9qdf9VRff1zVb7D7ghqntoQ0EuOaTsUXD9QfTczk7SEEPMDF XwGbFKl8Ib9mf5CSMGDL6aLIUHFbTHbKSMI/gwhUNkWSqtgRh9PbnOXLleHjxWey1m D0RqqlYvjfSyg38LD/JBKXkrWxwAUgqnqXYQgzVM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Michael=20H=C3=BCbner?= , Jiri Kosina Subject: [PATCH 5.19 26/72] HID: thrustmaster: Add sparco wheel and fix array length Date: Fri, 2 Sep 2022 14:19:02 +0200 Message-Id: <20220902121405.660611157@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902121404.772492078@linuxfoundation.org> References: <20220902121404.772492078@linuxfoundation.org> User-Agent: quilt/0.67 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 From: Michael Hübner commit d9a17651f3749e69890db57ca66e677dfee70829 upstream. 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 Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-thrustmaster.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/hid/hid-thrustmaster.c +++ b/drivers/hid/hid-thrustmaster.c @@ -67,12 +67,13 @@ static const struct tm_wheel_info tm_whe {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