From patchwork Thu Oct 1 20:57:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Rojtberg X-Patchwork-Id: 7311361 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 389B99F1D5 for ; Thu, 1 Oct 2015 20:57:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40A752076F for ; Thu, 1 Oct 2015 20:57:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 66A4120805 for ; Thu, 1 Oct 2015 20:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757141AbbJAU5l (ORCPT ); Thu, 1 Oct 2015 16:57:41 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33769 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757015AbbJAU5k (ORCPT ); Thu, 1 Oct 2015 16:57:40 -0400 Received: by wiclk2 with SMTP id lk2so8093433wic.0 for ; Thu, 01 Oct 2015 13:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8BPkVbVQqY0cCLJDzuHMcRIjnbppUyPg+ybRx0xkdtc=; b=yK05+6zul2Cn8e7jJWsvJEcQ8WoDQY2yGVLaMqLQAc98HVIqqAzAoWBVRbG5q/80tc PidXoS4KfM8D64o3OB51cMg7nPWw4bHyP683WW2P2DQKbnquKFgvwDKHppwtxt0wimIn g354M3988wmZwPHH93t8l5FYvSZIJgjDgihwYu1qTC2F/2U6RbN3SG8etPWLrNBSyLZs JlAaEzflhUASs87sST+bwACllw3JEMWCMzJ9eaEYfUh8upBXkjXYpoxUgXQtSH6jaV/U 5xfFaUslEVOVpizRbYG+g147e78DkIBHL8J6yxv4NuEDCcej0cPDBSCOYBn91JLeoiZH BDMA== X-Received: by 10.194.103.194 with SMTP id fy2mr12112677wjb.10.1443733059852; Thu, 01 Oct 2015 13:57:39 -0700 (PDT) Received: from deepwhite.fritz.box (p5790B98A.dip0.t-ipconnect.de. [87.144.185.138]) by smtp.gmail.com with ESMTPSA id lb10sm7989698wjc.9.2015.10.01.13.57.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Oct 2015 13:57:39 -0700 (PDT) From: Pavel Rojtberg X-Google-Original-From: Pavel Rojtberg < rojtberg@gmail.com > To: linux-input@vger.kernel.org, pgriffais@valvesoftware.com, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org Cc: Dario Scarpa , Pavel Rojtberg Subject: [PATCH 02/15] Input: xpad: fix Razer Atrox Arcade Stick button mapping Date: Thu, 1 Oct 2015 22:57:13 +0200 Message-Id: <1443733046-29610-3-git-send-email-rojtberg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443733046-29610-1-git-send-email-rojtberg@gmail.com> References: <1443733046-29610-1-git-send-email-rojtberg@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dario Scarpa The "Razer Atrox Arcade Stick" features 10 buttons, and two of them (LT/RT) don't work properly. Change its definition in xpad_device[] (mapping field) to fix. Signed-off-by: Dario Scarpa Signed-off-by: Pavel Rojtberg --- drivers/input/joystick/xpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index c3ba5be..e3b393c 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -205,7 +205,7 @@ static const struct xpad_device { { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 }, { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 }, { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 }, - { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", 0, XTYPE_XBOX360 }, + { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 }, { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 }, { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },