From patchwork Sat Oct 31 20:05:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Mastros X-Patchwork-Id: 56784 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9VK5f0Y005820 for ; Sat, 31 Oct 2009 20:05:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933202AbZJaUFf (ORCPT ); Sat, 31 Oct 2009 16:05:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933236AbZJaUFf (ORCPT ); Sat, 31 Oct 2009 16:05:35 -0400 Received: from mail-yw0-f202.google.com ([209.85.211.202]:61390 "EHLO mail-yw0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933202AbZJaUFe (ORCPT ); Sat, 31 Oct 2009 16:05:34 -0400 Received: by ywh40 with SMTP id 40so3559459ywh.33 for ; Sat, 31 Oct 2009 13:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=jWEt57T9rvuLCCm83y/IIfG8ZieDvHGBIiN8rgicGl8=; b=gk1pYqKQ60LLMJ7RCGhqdP7QR+35gKnkm43bz/So7udh7K/Ep7RlMwPxdeXZz1r+IQ 7xiO6x5YdPpaUUYmxgx2cEgeji1oRWsw5ks1SVe+MITfd4GJgxxEqbAMHe/oVSkDXcZw tmg8UQDdBLu5ezUBGLpDwhJ4FRpHV51vIG+PM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=DNMnDAlHyYfuThf6I/pQhAkWpO2xXwMygGzN7tzDIn5AE8t+K4hInLC28a6LtXCkXE 3IPlTv9W1HBDb1tNDJEXSFi147GMd9nIMAD15tj+c7oq7/wDWD2kn8fJINkC7Qe/4H6W KtOj1hfnKsnxw3Qhvw0KG+rEL+ND3Sk2Yadag= MIME-Version: 1.0 Received: by 10.90.61.31 with SMTP id j31mr7071035aga.3.1257019538979; Sat, 31 Oct 2009 13:05:38 -0700 (PDT) Date: Sat, 31 Oct 2009 20:05:38 +0000 X-Google-Sender-Auth: 467ad0c565126944 Message-ID: Subject: [rfc] xbox360 Big-button controller support for xpad.c, take 3 From: James Mastros To: linux-input@vger.kernel.org, free60-devel@vger.kernel.org Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -94,6 +94,7 @@ #define XTYPE_XBOX360 1 #define XTYPE_XBOX360W 2 #define XTYPE_UNKNOWN 3 +#define XTYPE_XBOX360BB 4 static int dpad_to_buttons; module_param(dpad_to_buttons, bool, S_IRUGO); @@ -147,6 +148,7 @@ static const struct xpad_device { { 0x045e, 0x028e, "Microsoft X-Box 360 pad", MAP_DPAD_TO_AXES, XTYPE_XBOX360 }, { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", MAP_DPAD_TO_AXES, XTYPE_XBOX }, + { 0x045e, 0x02a0, "Microsoft X-Box 360 Big Button IR reciever",