From patchwork Tue May 29 16:47:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ethan Lee X-Patchwork-Id: 10436445 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 D1E1F602BF for ; Tue, 29 May 2018 16:47:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF79228A32 for ; Tue, 29 May 2018 16:47:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B44BD28A39; Tue, 29 May 2018 16:47:47 +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 29A3728A32 for ; Tue, 29 May 2018 16:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936494AbeE2Qrq (ORCPT ); Tue, 29 May 2018 12:47:46 -0400 Received: from mail-yb0-f172.google.com ([209.85.213.172]:40853 "EHLO mail-yb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935486AbeE2Qrp (ORCPT ); Tue, 29 May 2018 12:47:45 -0400 Received: by mail-yb0-f172.google.com with SMTP id o80-v6so5309987ybc.7 for ; Tue, 29 May 2018 09:47:45 -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=aW06Pu3aDL42AzAyOBb+Q7Gjrt6j8WJNl1KBqd3Nfe8=; b=ifbk6/1b8Dg57bXYI3RPfiZiqX3GJDPABIKbwQUoYYDlISvTjyxYFNHdrDvK/vXX3N dJ+ZVzKuSLpy2IPo5qCcWj4aNt/ILP2pMP8T39OIoAIvlPDzBRGcLyrTCOYXxSJDiDRr gCxyANxciYhxD+H/5FoN5Fji0bPqQvycCxs5ThuvkNvqWUzD5h67E1aHKsfQs8ckIEn/ WcI58V+uyqoiuDETLfQfkgqJXUzSl3ewo223Ml493AUxj4p8LCZRrcCqr6JWOOZq2itC psokPM7DPIvlFND6koiBd6WLTYsaR+IJPziLleq0XRCdeyNb26oHP/GbFp7j43fPlDDm c37Q== 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=aW06Pu3aDL42AzAyOBb+Q7Gjrt6j8WJNl1KBqd3Nfe8=; b=j6xXJw/3z5DEwz956aP+ioISGKTTffdeyFNXAMCLwjoTNXljwPx0E9jx6sJQvlEJHN p60RFO5Fs2JbCQMVyFeEkO76Fib6ZZysPWLwb8aWuqOwXZGJ9ut9XgAlYdkNP6HPkeII +a36nc+IqpQHaHp1GFYdnfpGbL8pjmqj5NkP2u7bmr5kxGzJ+lN+DLdAkj6A/PIhLsEY W+ohalrxkv3YOrCmX2w60dgSVqHgf2CEnwV3MO0YLITBKXmF7UG+UPgabVU7HvLdv2Ps /L/MnD81wt4Wgyi6kMvfcD9AvyCCXpYU7B1QtxOBSwiF4diR5zmtPhxbDufTsZ0u2asX Ti3A== X-Gm-Message-State: ALKqPwdD7PeTsK14Cbp9CDM3zCFJykkdpPKqQAcwFsK+Da7xnOwRIhnH MVDpkFRE9XVCcx3cLlXsQzYjM0Su X-Google-Smtp-Source: ADUXVKIVlp3JNPq51/3K1JJmCzIEN+d8AdsuWuqXleLXC3XvloG/+y7lLkSoEkBC9VpOCQ4ZtdRLTQ== X-Received: by 2002:a25:abaf:: with SMTP id v44-v6mr9880021ybi.369.1527612465139; Tue, 29 May 2018 09:47:45 -0700 (PDT) Received: from flibittower.hsd1.ga.comcast.net ([2601:c6:c87f:f332::97b5]) by smtp.gmail.com with ESMTPSA id s20-v6sm14871504ywg.83.2018.05.29.09.47.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 09:47:44 -0700 (PDT) From: flibitijibibo@gmail.com To: linux-input@vger.kernel.org Cc: hadess@hadess.net, Ethan Lee Subject: [PATCH] xpad: Add GPD Win 2 Controller GUID Date: Tue, 29 May 2018 12:47:32 -0400 Message-Id: <20180529164732.7480-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 --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 06e9650b3b302..a89b81b359320 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 */