summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2021-08-14 18:52:14 +0300
committerJiri Kosina <jkosina@suse.cz>2021-08-20 15:58:19 +0300
commitbab94e97323baefe0afccad66e776f9c78b4f521 (patch)
tree08215ed71487c1b05c1882e971c21fe24bd1534f /drivers/hid
parent462ba66198a4a8ea996028915af10a698086e302 (diff)
downloadlinux-bab94e97323baefe0afccad66e776f9c78b4f521.tar.xz
HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in.
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> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-sony.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index b3722c51ec78..a2fef59063a6 100644
--- a/drivers/hid/hid-sony.c
+++ b/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);