HID: sony: Transform one-time SHANWAN check into quirk
authorHongye Yuan <outmatch@gmail.com>
Wed, 9 Jan 2019 01:18:08 +0000 (09:18 +0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 9 Jan 2019 13:56:30 +0000 (14:56 +0100)
commit69481059c507b3b5a99aaab0d544e6516034defc
tree52837ebfdc8bc9510a292ea201dc2ea840d800d5
parentcf26057a9441173ad552e90cea3344607075c9ad
HID: sony: Transform one-time SHANWAN check into quirk

Transform the one-time check for a SHANWAN PS3 clone gamepad into a
quirk, to avoid doing the same string comparison in multiple places.

Signed-off-by: Hongye Yuan <outmatch@gmail.com>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-sony.c