From patchwork Sun Aug 30 11:35:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Scarpa X-Patchwork-Id: 7097171 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 91BF5BEEC1 for ; Sun, 30 Aug 2015 11:42:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA072207B0 for ; Sun, 30 Aug 2015 11:42:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C1B920798 for ; Sun, 30 Aug 2015 11:41:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbbH3Llc (ORCPT ); Sun, 30 Aug 2015 07:41:32 -0400 Received: from smtp205.alice.it ([82.57.200.101]:38658 "EHLO smtp205.alice.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753295AbbH3Llb (ORCPT ); Sun, 30 Aug 2015 07:41:31 -0400 X-Greylist: delayed 367 seconds by postgrey-1.27 at vger.kernel.org; Sun, 30 Aug 2015 07:41:30 EDT Received: from xps (95.245.181.242) by smtp205.alice.it (8.6.060.28) (authenticated as darioscarpa@alice.it) id 55BB312F06ED6EC6; Sun, 30 Aug 2015 13:35:21 +0200 Date: Sun, 30 Aug 2015 13:35:00 +0200 From: Dario Scarpa To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, rojtberg@gmail.com, tt.rantala@gmail.com, mwei@lxde.org, aniroop.mathur@gmail.com, benpicco@zedat.fu-berlin.de, pgriffais@valvesoftware.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: xpad - fix "Razer Atrox Arcade Stick" mapping definition Message-ID: <20150830113500.GA12138@xps.deltalabs> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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 Reviewed-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 f8850f9..6417a8a 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -204,7 +204,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 },