From patchwork Tue May 29 18:48:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ethan Lee X-Patchwork-Id: 10436745 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 948AD601C7 for ; Tue, 29 May 2018 18:48:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83E5828998 for ; Tue, 29 May 2018 18:48:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77ECD289AB; Tue, 29 May 2018 18:48:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96184289BC for ; Tue, 29 May 2018 18:48:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965311AbeE2Ssr (ORCPT ); Tue, 29 May 2018 14:48:47 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:40535 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964830AbeE2Ssq (ORCPT ); Tue, 29 May 2018 14:48:46 -0400 Received: by mail-yb0-f195.google.com with SMTP id o80-v6so5449010ybc.7 for ; Tue, 29 May 2018 11:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=TVM14ZYDR0SrJc2GoWQy6MbR16+N1f8OS0jUx4Cxipo=; b=pDCo1oJ2tBrfDTePK+SAP3ihsURiiEROblTTWHdw75u+qXmsnCl8yv7SSDiKemTPSM Zzb7lSTk19VaiHlhuA268ahDoMRfukYZeNsIIn7ntrL/8vTMPnwOu1KnLnBN9vbBBFm6 HJpoaA+OM4MjBKr55UV7Pi9tE7cwLMx15Ii3GfJAjt1JRQ3lWIE9HfbpRKSgRntJVdQm qMkKe/TO9KqxuMurnvjpDGlHSareKC+vVJBtMj8vZ2SiwKy42e3QSDz4JqdBtKgbdX8s nysLdfqeJ/aIHW1yWEYZSvA5DGyNv7dYIMp5KnA4wXpD0EJwhdjE1Z5SmVu+gl2pDgDD /CwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TVM14ZYDR0SrJc2GoWQy6MbR16+N1f8OS0jUx4Cxipo=; b=guWAQHtLXTrO7ZHBR2HKd+Lm7nKqFwZKfXChZL9gokkgW9KYB4GjLhnBEPir9DttGx z2uQKNkx0g6yJdLBT8006GHVdsO0pBgy0nRlCTOb1hWKlbHL1rCNbgDTjC4OkXCCQZUH vKmKldY3aARnb59NvfwJS7cmzW1aiowhEMFGaWAHwtSgTsq5sKKncv77urOzD2drKx1B OLC5VI6prTARea/2csuaeAxap5wTGinq2MeN0LKKOMcvSnYR/d0778/xdZiVYyG05R1Y obe5Wbv9m7QWDdwMGI4s8wZGBjJ1n2T3cKV82IYROfmok7LxukgSwBzGp6BGSl/cSJJL pPwg== X-Gm-Message-State: ALKqPwe/WxWnxxC23sxFZHgqnr9UKlB9kmpS7LyW1n4FZwVDqzMsnxS6 3DrTZjLXTrBre7N/UhYfS32yBSSK6ZI= X-Google-Smtp-Source: ADUXVKLIqxArrNCfT/IQD+74cwmKbOTtZnQeE6QLJGuV6UWTlxQwvyvUD6WHkXHQqyFpYiY5Apof5w== X-Received: by 2002:a5b:80c:: with SMTP id x12-v6mr10024640ybp.361.1527619725979; Tue, 29 May 2018 11:48:45 -0700 (PDT) Received: from flibittower.hsd1.ga.comcast.net ([2601:c6:c87f:f332::97b5]) by smtp.gmail.com with ESMTPSA id r64-v6sm3015953ywg.47.2018.05.29.11.48.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 11:48:45 -0700 (PDT) From: flibitijibibo@gmail.com To: linux-input@vger.kernel.org Cc: hadess@hadess.net, Ethan Lee Subject: [PATCH v2] xpad: Add GPD Win 2 Controller GUID Date: Tue, 29 May 2018 14:48:10 -0400 Message-Id: <20180529184810.12722-1-flibitijibibo@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ethan Lee GPD Win 2 Website: http://www.gpd.hk/gpdwin2.asp Tested on a unit from the first production run sent to Indiegogo backers Signed-off-by: Ethan Lee --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 06e9650b3b30..a89b81b35932 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -123,6 +123,7 @@ static const struct xpad_device { u8 mapping; u8 xtype; } xpad_device[] = { + { 0x0079, 0x18d4, "GPD Win 2 Controller", 0, XTYPE_XBOX360 }, { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX }, { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX }, { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX }, @@ -409,6 +410,7 @@ static const signed short xpad_abs_triggers[] = { static const struct usb_device_id xpad_table[] = { { USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */ + XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 Controller */ XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */ XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft X-Box One controllers */