mirror of
https://github.com/HubertD/socketcan_gs_usb.git
synced 2025-05-08 19:06:56 +08:00
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:
parent
6b975ca699
commit
a2d41cb140
2
gs_usb.c
2
gs_usb.c
@ -950,7 +950,7 @@ static void gs_usb_disconnect(struct usb_interface *intf)
|
||||
}
|
||||
|
||||
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 */
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user