aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-09-02 19:20:31 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-03 13:51:02 -0400
commit11ad714b98f6d9ca0067568442afe3e70eb94845 (patch)
tree9b2c515df6a1679c82b1b749e282d4dcda441940
parenta2dc375e12334b3d8f787a48b2fb6172ccfb80ae (diff)
net: cx82310_eth: use common match macro
Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/usb/cx82310_eth.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/usb/cx82310_eth.c b/drivers/net/usb/cx82310_eth.c
index 49ab45e17fe8..1e207f086b75 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 = {
302 .tx_fixup = cx82310_tx_fixup, 302 .tx_fixup = cx82310_tx_fixup,
303}; 303};
304 304
305#define USB_DEVICE_CLASS(vend, prod, cl, sc, pr) \
306 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
307 USB_DEVICE_ID_MATCH_DEV_INFO, \
308 .idVendor = (vend), \
309 .idProduct = (prod), \
310 .bDeviceClass = (cl), \
311 .bDeviceSubClass = (sc), \
312 .bDeviceProtocol = (pr)
313
314static const struct usb_device_id products[] = { 305static const struct usb_device_id products[] = {
315 { 306 {
316 USB_DEVICE_CLASS(0x0572, 0xcb01, 0xff, 0, 0), 307 USB_DEVICE_AND_INTERFACE_INFO(0x0572, 0xcb01, 0xff, 0, 0),
317 .driver_info = (unsigned long) &cx82310_info 308 .driver_info = (unsigned long) &cx82310_info
318 }, 309 },
319 { }, 310 { },