From mboxrd@z Thu Jan 1 00:00:00 1970 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 13E6ACDB482 for ; Wed, 18 Oct 2023 14:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235184AbjJROYz (ORCPT ); Wed, 18 Oct 2023 10:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345766AbjJROYS (ORCPT ); Wed, 18 Oct 2023 10:24:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC561FF3; Wed, 18 Oct 2023 07:15:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9792BC433BB; Wed, 18 Oct 2023 14:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697638541; bh=K0HcF1PjkRDSG4i8xj9GWY/dwJPZ7X5wrwuuJXTHF98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mrag7aMEmUgF8IqZ055ON0OIAZn5ZFS/eClm62eulsKVD+pkGbqTchEoLNPUbjA+l 90U3R0NkRwRi6PMyS9ZrB8t3ytR5ULDlnUm1SOidkm9i4Lpqzjw/KcIGTqbTHrzzx+ G6IJ94m/hjbzJb+hKzYe/JF5Hldz0GbjIQ105RAilFDGJ0YfqmYVDYqukmdjYE5Wl9 YKJIVzs+ScbWTlfgwcNAMnNbA661a1l9mU9luMYKImE7X9UfR9yEDcdwVtMsOHgIUb 6xP2+ETdxA86SE/OGCMMKixPRHfUULkYAH/ZuDYeYLtyLAlqawR/TFrfMfuvEMJAWx RoH+Vu0Ynj3VA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Matthias Berndt , Dmitry Torokhov , Sasha Levin , vi@endrift.com, swyterzone@gmail.com, carl.ng@hp.com, radon86dev@gmail.com, maxwell.nguyen@hp.com, slouken@libsdl.org, linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 6/7] Input: xpad - add PXN V900 support Date: Wed, 18 Oct 2023 10:15:22 -0400 Message-Id: <20231018141525.1335533-6-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231018141525.1335533-1-sashal@kernel.org> References: <20231018141525.1335533-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.4.258 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Berndt [ Upstream commit a65cd7ef5a864bdbbe037267c327786b7759d4c6 ] Add VID and PID to the xpad_device table to allow driver to use the PXN V900 steering wheel, which is XTYPE_XBOX360 compatible in xinput mode. Signed-off-by: Matthias Berndt Link: https://lore.kernel.org/r/4932699.31r3eYUQgx@fedora Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- 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 b99318fb58dc6..762c502391464 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -252,6 +252,7 @@ static const struct xpad_device { { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 }, { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 }, { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 }, + { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 }, { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 }, { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 }, @@ -446,6 +447,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori Controllers */ XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries Controllers */ XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */ + XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */ XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */ XPAD_XBOX360_VENDOR(0x12ab), /* X-Box 360 dance pads */ XPAD_XBOX360_VENDOR(0x1430), /* RedOctane X-Box 360 controllers */ -- 2.40.1