linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in.
@ 2021-08-14 15:52 Ulrich Spörlein
  2021-08-20 12:57 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Spörlein @ 2021-08-14 15:52 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-usb, Ulrich Spörlein

The device string on these can differ, apparently, including typos. I've
bought 2 of these in 2012 and googling shows many folks out there with
that broken spelling in their dmesg.

Signed-off-by: Ulrich Spörlein <uqs@FreeBSD.org>
---
 drivers/hid/hid-sony.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git drivers/hid/hid-sony.c drivers/hid/hid-sony.c
index b3722c51ec78..a2fef59063a6 100644
--- drivers/hid/hid-sony.c
+++ drivers/hid/hid-sony.c
@@ -2974,7 +2974,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
 	if (!strcmp(hdev->name, "FutureMax Dance Mat"))
 		quirks |= FUTUREMAX_DANCE_MAT;
 
-	if (!strcmp(hdev->name, "SHANWAN PS3 GamePad"))
+	if (!strcmp(hdev->name, "SHANWAN PS3 GamePad") ||
+	    !strcmp(hdev->name, "ShanWan PS(R) Ga`epad"))
 		quirks |= SHANWAN_GAMEPAD;
 
 	sc = devm_kzalloc(&hdev->dev, sizeof(*sc), GFP_KERNEL);
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in.
  2021-08-14 15:52 [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in Ulrich Spörlein
@ 2021-08-20 12:57 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2021-08-20 12:57 UTC (permalink / raw)
  To: Ulrich Spörlein; +Cc: linux-usb

On Sat, 14 Aug 2021, Ulrich Spörlein wrote:

> The device string on these can differ, apparently, including typos. I've
> bought 2 of these in 2012 and googling shows many folks out there with
> that broken spelling in their dmesg.

Those aftermarket producers can be funny sometimes :) Applied, thanks.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-20 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-14 15:52 [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in Ulrich Spörlein
2021-08-20 12:57 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).