* [PATCH] can: gs_usb: Modify the usb device table to use only the first usb interface
@ 2016-04-25 8:54 Maximilian Schneider
2016-05-08 17:53 ` Marc Kleine-Budde
0 siblings, 1 reply; 2+ messages in thread
From: Maximilian Schneider @ 2016-04-25 8:54 UTC (permalink / raw)
To: linux-can
From 24680c50e6b07292e7ee6ebfec0a826a32d5bcb9 Mon Sep 17 00:00:00 2001
From: Maximilian Schneider <max@schneidersoft.net>
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 <max@schneidersoft.net>
---
drivers/net/can/usb/gs_usb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c
index cbc99d5..4731cb2 100644
--- a/drivers/net/can/usb/gs_usb.c
+++ b/drivers/net/can/usb/gs_usb.c
@@ -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 */
};
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-08 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25 8:54 [PATCH] can: gs_usb: Modify the usb device table to use only the first usb interface Maximilian Schneider
2016-05-08 17:53 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).