diff options
author | Tristan Rice <rice@outerearth.net> | 2013-11-12 19:06:23 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-11-12 19:06:23 +0100 |
commit | e17f5d7667c5414b8f12a93ef14aae0824bd2beb (patch) | |
tree | e3f44441a43be40e47a5e2bf6a3eeb2244ca8935 /drivers/hid/hid-axff.c | |
parent | a08c22c0df0ad23d0df10ae1a9df26643589b3cc (diff) | |
download | linux-stable-e17f5d7667c5414b8f12a93ef14aae0824bd2beb.tar.gz linux-stable-e17f5d7667c5414b8f12a93ef14aae0824bd2beb.tar.bz2 linux-stable-e17f5d7667c5414b8f12a93ef14aae0824bd2beb.zip |
HID: enable Mayflash USB Gamecube Adapter
This is a patch that adds the new Mayflash Gamecube Controller to USB adapter
(ID 1a34:f705 ACRUX) to the ACRUX driver (drivers/hid/hid-axff.c) with full
force feedback support.
Signed-off-by: Tristan Rice <rice@outerearth.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-axff.c')
-rw-r--r-- | drivers/hid/hid-axff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-axff.c b/drivers/hid/hid-axff.c index 64ab94a55aa7..a594e478a1e2 100644 --- a/drivers/hid/hid-axff.c +++ b/drivers/hid/hid-axff.c @@ -95,7 +95,7 @@ static int axff_init(struct hid_device *hid) } } - if (field_count < 4) { + if (field_count < 4 && hid->product != 0xf705) { hid_err(hid, "not enough fields in the report: %d\n", field_count); return -ENODEV; @@ -180,6 +180,7 @@ static void ax_remove(struct hid_device *hdev) static const struct hid_device_id ax_devices[] = { { HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802), }, + { HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705), }, { } }; MODULE_DEVICE_TABLE(hid, ax_devices); |