All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ulrich Spörlein" <uqs@FreeBSD.org>
To: Jiri Kosina <jikos@kernel.org>
Cc: linux-usb@vger.kernel.org, "Ulrich Spörlein" <uqs@FreeBSD.org>
Subject: [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in.
Date: Sat, 14 Aug 2021 17:52:14 +0200	[thread overview]
Message-ID: <20210814155214.83856-1-uqs@FreeBSD.org> (raw)

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


             reply	other threads:[~2021-08-14 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14 15:52 Ulrich Spörlein [this message]
2021-08-20 12:57 ` [PATCH] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210814155214.83856-1-uqs@FreeBSD.org \
    --to=uqs@freebsd.org \
    --cc=jikos@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.