netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: cx82310_eth: use common match macro
@ 2012-09-03  9:20 Bjørn Mork
  2012-09-03  9:20 ` [PATCH net-next 1/2] net: sierra_net: make private symbols static Bjørn Mork
       [not found] ` <1346664033-30284-1-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Bjørn Mork @ 2012-09-03  9:20 UTC (permalink / raw)
  To: netdev; +Cc: linux-usb, Bjørn Mork

Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
 drivers/net/usb/cx82310_eth.c |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/drivers/net/usb/cx82310_eth.c b/drivers/net/usb/cx82310_eth.c
index 49ab45e..1e207f0 100644
--- a/drivers/net/usb/cx82310_eth.c
+++ b/drivers/net/usb/cx82310_eth.c
@@ -302,18 +302,9 @@ static const struct driver_info	cx82310_info = {
 	.tx_fixup	= cx82310_tx_fixup,
 };
 
-#define USB_DEVICE_CLASS(vend, prod, cl, sc, pr) \
-	.match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
-		       USB_DEVICE_ID_MATCH_DEV_INFO, \
-	.idVendor = (vend), \
-	.idProduct = (prod), \
-	.bDeviceClass = (cl), \
-	.bDeviceSubClass = (sc), \
-	.bDeviceProtocol = (pr)
-
 static const struct usb_device_id products[] = {
 	{
-		USB_DEVICE_CLASS(0x0572, 0xcb01, 0xff, 0, 0),
+		USB_DEVICE_AND_INTERFACE_INFO(0x0572, 0xcb01, 0xff, 0, 0),
 		.driver_info = (unsigned long) &cx82310_info
 	},
 	{ },
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-03 17:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03  9:20 [PATCH net-next] net: cx82310_eth: use common match macro Bjørn Mork
2012-09-03  9:20 ` [PATCH net-next 1/2] net: sierra_net: make private symbols static Bjørn Mork
2012-09-03 17:51   ` David Miller
     [not found] ` <1346664033-30284-1-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2012-09-03  9:20   ` [PATCH net-next 2/2] net: sierra_net: rx_urb_size is constant Bjørn Mork
2012-09-03 17:51     ` David Miller
2012-09-03 17:51   ` [PATCH net-next] net: cx82310_eth: use common match macro David Miller

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).