use only the first interface of each usb device

the candleLight USB dongle is exposing two interfaces:
one for the GS_USB functionality, and one for USB DFU run-mode.

this patch ensures that the driver only grabs the GS_USB interface
and does not try to make a socketcan device from the DFU interface
This commit is contained in:
Hubert Denkmair 2016-04-23 23:27:55 +02:00
parent 6b975ca699
commit a2d41cb140

View File

@ -950,7 +950,7 @@ static void gs_usb_disconnect(struct usb_interface *intf)
} }
static const struct usb_device_id gs_usb_table[] = { static const struct usb_device_id gs_usb_table[] = {
{USB_DEVICE(USB_GSUSB_1_VENDOR_ID, USB_GSUSB_1_PRODUCT_ID)}, {USB_DEVICE_INTERFACE_NUMBER(USB_GSUSB_1_VENDOR_ID, USB_GSUSB_1_PRODUCT_ID, 0)},
{} /* Terminating entry */ {} /* Terminating entry */
}; };