From patchwork Fri Mar 24 04:04:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicki Pfau X-Patchwork-Id: 667104 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73CFDC6FD20 for ; Fri, 24 Mar 2023 04:05:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbjCXEFb (ORCPT ); Fri, 24 Mar 2023 00:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCXEFa (ORCPT ); Fri, 24 Mar 2023 00:05:30 -0400 Received: from endrift.com (endrift.com [173.255.198.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B12416327 for ; Thu, 23 Mar 2023 21:05:29 -0700 (PDT) Received: from nebulosa.vulpes.eutheria.net (unknown [50.47.218.115]) by endrift.com (Postfix) with ESMTPSA id 8E9A1A269; Thu, 23 Mar 2023 21:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=endrift.com; s=2020; t=1679630729; bh=SNFCc2aY48PcomGrxZ8+3BxS92edMs4EY6GqsIDEjrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7c1UzT5PwY25I6odUyIql7gFOWrUKk2YC56C7NslFKUrb9ohsiVsTd3yfubudJA2 2//1Z6dnDlpFcg8Yz/ESTyc0FAbZQF4RyYaKoHve1ExP/TmvuwdSdOWUeEVISK2Q5M xQP/6kIbI4l+IaKlg5mjsANarz0PGVYfLe5e3/d+td1TdRNxPpL4Ojqxmswf17niCV B4AURDnVkxH7OgOot56MhYzF1JMATJOyJeQjoJoo33lZnvNbLSDZOTyHVPVatPbLwK PMG6wgeCSUxx0e5D2A/I3pd66w4rCQYWDgsJBaGymzXwG6oUdpUPFZhdHS01l77WdG BvnEwBuLDQVDg== From: Vicki Pfau To: Dmitry Torokhov , Lyude Paul , Benjamin Tissoires , linux-input@vger.kernel.org Cc: "Pierre-Loup A. Griffais" , Vicki Pfau Subject: [PATCH v2 1/2] Input: xpad - Treat Qanba controllers as Xbox360 controllers Date: Thu, 23 Mar 2023 21:04:45 -0700 Message-Id: <20230324040446.3487725-2-vi@endrift.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324040446.3487725-1-vi@endrift.com> References: <20230324040446.3487725-1-vi@endrift.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: "Pierre-Loup A. Griffais" They act that way in PC mode. Reviewed-by: Lyude Paul Signed-off-by: Pierre-Loup A. Griffais Signed-off-by: Vicki Pfau --- drivers/input/joystick/xpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 49ae963e5f9d..c2c688156b2e 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -493,6 +493,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */ XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */ + XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */ XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller */ XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */ XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */