can: gs_usb: Modify the usb device table to use only the first usb interface
PATCH 1/1 can: gs_usb: Modify the usb device table to use only the first usb interface
From 24680c50e6b07292e7ee6ebfec0a826a32d5bcb9 Mon Sep 17 00:00:00 2001
From: Maximilian Schneider <[email protected]>
Date: Sun, 24 Apr 2016 01:10:01 +0000
Subject: [PATCH] Modified the USB device table to use only the first USB
interface, as is the case with GS USB devices. This allows other GS USB compatible devices to be more flexible with their remaining interfaces.
--- drivers/net/can/usb/gs_usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/can/usb/gs_usb.c +2 -1
@@ -950,7 +950,8 @@ 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 */ };
Signature · 1 line
2.1.4
Quoted 8 lines · Maximilian Schneider
From
24680c50e6b07292e7ee6ebfec0a826a32d5bcb9Mon Sep 17 00:00:00 2001
From: Maximilian Schneider <[email protected]>
Date: Sun, 24 Apr 2016 01:10:01 +0000
Subject: [PATCH] Modified the USB device table to use only the first USB
interface, as is the case with GS USB devices. This allows other GS USB compatible devices to be more flexible with their remaining interfaces.Signed-off-by Maximilian Schneider <[email protected]>
Applied to can-next.
Tnx,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |