Magnus Damm wrote:
> 
> Hi,
> 
> This patch makes a  "Saitek X6-34U" gamepad useful with Linux.
> It seems that the device reports itself with device class == 0.
> Forcing hid.c to accept it fixes the problem.

<patch snipped>
Why are you doing it that way? How about:

#define USB_VENDOR_ID_MEGAWORLD 0x07b5
#define USB_DEVICE_ID_MEGAWORLD_USB_GAMEPAD 0x9902

and then modify the device table to:

static struct usb_device_id hid_usb_ids [] = {
    { match_flags: USB_DEVICE_ID_MATCH_INT_CLASS,
      bInterfaceClass: USB_INTERFACE_CLASS_HID},
    { USB_DEVICE(USB_VENDOR_ID_MEGAWORLD, USB_DEVICE_ID_MEGAWORLD_USB_GAMEPAD)
},
    { }                                         /* Terminating entry */
};

Does that not work?

Brad


> +       { USB_VENDOR_ID_MEGAWORLD, USB_DEVICE_ID_MEGAWORLD_USB_GAMEPAD },

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to