From patchwork Sat Nov 25 16:22:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 169752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2034889vqx; Sat, 25 Nov 2023 08:23:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnSEszUCu7oLq74An02RsbuSoHBaLQYplJdu2dfSTundO2ieLZmwRaSLT28tgzZJk+1hdx X-Received: by 2002:a05:6e02:1d01:b0:35a:a534:916a with SMTP id i1-20020a056e021d0100b0035aa534916amr9017170ila.6.1700929393705; Sat, 25 Nov 2023 08:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700929393; cv=none; d=google.com; s=arc-20160816; b=Z2Yz9WKkup8M+f2Un5rFJIai+HyKssHeBU9Ex5rTDBRMPtQWHcW8hZ5RXL+H3Nnc2v aEe0BfYVboHQYtfj0Q9tdYS3G78b09IfVK3GQ6KAEbAqauPvqtTMuMGvroqaftQA/nAB qQHgJw6aYys41IWvd8nsqvCGB+Z6BYsdd2wbh3hpK/qtgFi/LF2T4lrBxw/T6a+M+Soj K1L7OxGcnwxnCOcBxMkG82ljKfXAGYP8ZZXGc0/cxQYK1IYLgNIfT5Hyn8sp4ty0SRnR AN68Kbf+vra1eSuKhyId/Altd4zD1NLH1rU1rtOYY89gbrIbDxnpnCTwRGyeOZg2n6pY DG8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=rdXwCiymBaj5ndfoNEA1Qx8jmBl6xSJJ/KYwJ8I4WJs=; fh=8J8tUwnVDm/rCAdydu3BfvN5RWYYQnH//x4nc3TQlRc=; b=eAqPsXx8ZjiTJSZbl5XxVO64erP+di3wnTrKs/jSCQRFHRAq5duHjAsSN76EZGU6+Z KDZcBp1rcHd8KOuwhR4rV77NDzLpXqBanPA5ANl9dyjF7OwA4758WxANjJsc0zadKag8 NMSe1COdjaGuaiGJ4bC7V7cL3KF3SQ7krMdBzDo05DBbCfVJEX42Sh9wFQBYVpQJcsGd 3L4hgCZDmO/jz/PYYBe7hbawy4lkTk+ugYEv1CSNYPDqiu0L03HY0fcc+y6I6WEjKtui 1f3fYh5bWfCnlqrrJbh7dmwMyRIeHlTWwdm7R3bHJf8ggtH6VhBF4UHX8jVikBAr5Gzl J8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=WXA2qcl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c1-20020a63da01000000b005ad11a5ac8fsi6155263pgh.323.2023.11.25.08.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 08:23:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=WXA2qcl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 58336805B2EB; Sat, 25 Nov 2023 08:23:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232177AbjKYQXA (ORCPT + 99 others); Sat, 25 Nov 2023 11:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbjKYQW4 (ORCPT ); Sat, 25 Nov 2023 11:22:56 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 425E79F; Sat, 25 Nov 2023 08:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700929349; bh=PAlRc2ja3hh6DeaWm9zc1SFzcPjmPGHqZ2p19AErk3o=; h=From:Date:Subject:To:Cc; b=WXA2qcl9v7BwZVhxsSk1xhOGD5Ht/FoltLKgnMNZbuPQY6j34wQArAvx/hY3IxuiI dKm+XjZ4Snk9jWDdIonZsHOcsLk/R0X7nh0UO1GI/DHMWaNT+XVJy912QIQyiGaNpm 0yYPaqNNd+Wyg7diUsY7CVNUyChrbxqwVilnImmk= From: Luca Weiss Date: Sat, 25 Nov 2023 17:22:15 +0100 Subject: [PATCH] Input: xpad - add Razer Wolverine V2 support MIME-Version: 1.0 Message-Id: <20231125-razer-wolverine-v2-v1-1-979fe9f9288e@z3ntu.xyz> X-B4-Tracking: v=1; b=H4sIADYfYmUC/x3MMQqAMAxA0atIZgNtpItXEYdqowaklRSqKN7d4 viH9x/IrMIZ+uYB5SJZUqxh2wbmzceVUUJtIEOdteRQ/c2KZ9pLhZGxEAbjyE7UefYOKjyUF7n +6TC+7wcepOICZAAAAA== To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1124; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=PAlRc2ja3hh6DeaWm9zc1SFzcPjmPGHqZ2p19AErk3o=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYh85IHrmrKDRYKR+d09mJfLAfIvc0J+BeffIi DinFHOWPwKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWIfOQAKCRBy2EO4nU3X Vs14D/9iC5JJyHV8M8HNrp2ivvOA7otQzZYCyfH/ZTtCwfBNUMzWIjMVqYOwSsjkPW/zYucXfaq uCVG+2tnCWBrvxGuGPtx6A34cKuapwm46ddT2wzrmiJ9wYoJFaU2wgassw54wWcs/qbR1KmHeOh jS+Ve1WkQF/2YO75cyW9zuDpWsvboiTA8NEQ66mHljmf3CTnqxn82P7Pbmnr0rJMOG6LhsiS26C 3W8pDf7ELwXSk9WEDOqlxwCZi4Cdbbmvc0mbc7UJef1lFKB85zYj8ew72ishXxHsIhvBI9P8LSf SljEc4mmzUVsf+tNLOoYE94b5ZkAC6F9c3C+9TnNL1k1YrWbsLW04B7QRo+FwDGFX56jRw8ry9i 0GEkSViAu5GqZL0tdOxaY5s+7mD5jp+PTC4U6RhQg3205GR9e9CnmiVYDAVENZ47avoKHXZovV2 iDP0LBl2rCU8k+XHQZPLyAceWTP1Uiw/Ie5xbhisGMIUaHIAnbPJHe0kstUJayFLaeVydvH96Jj 75jPhQVL8QxljqoWWTrALWxWjAHaxDg/VOzvZvsOu7pGaFlXOyxgWH3HLR7JLJLQkLdhVLzGSsr HqO5qLlqagbjjs9FvG1Vp4hsjaeBnQS4YBhXdOV9vpKYHaKLMZhd0irtJd+GLPlxqAdfE1N4sgW 3s+wy+l8/9S8wlA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 08:23:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783553739694377074 X-GMAIL-MSGID: 1783553739694377074 Add the VID and PID of Razer Wolverine V2 to xpad_device. Signed-off-by: Luca Weiss --- drivers/input/joystick/xpad.c | 1 + 1 file changed, 1 insertion(+) --- base-commit: 0f5cc96c367f2e780eb492cc9cab84e3b2ca88da change-id: 20231125-razer-wolverine-v2-d0521b23aea5 Best regards, diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index f5c21565bb3c..e2c1848182de 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -286,6 +286,7 @@ static const struct xpad_device { { 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE }, { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE }, + { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE }, { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 }, { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 }, { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },