> <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_DEVICE(USB_VENDOR_ID_MEGAWORLD, USB_DEVICE_ID_MEGAWORLD_USB_GAMEPAD)
> },
>     { }                                         /* Terminating entry */
> };
> 
> Does that not work?

Well, I don't know. =)
I run Linux-2.2.19 and the hid_usb_ids table does not exist in hid.c.

I don't know how the usb_device_id struct is parsed, but
the device doesn't report itself as a USB_INTERFACE_CLASS_HID device.
If the id:s exist in the force-table the bInterfaceClass-check is
ignored.

If there is a way to solve that using the usb_device_id struct, that is
of course a better solution.

Thanks for the feedback /

Magnus

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

Reply via email to