Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11ad714b authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller
Browse files

net: cx82310_eth: use common match macro



Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a2dc375e
Loading
Loading
Loading
Loading
+1 −10
Original line number Original line Diff line number Diff line
@@ -302,18 +302,9 @@ static const struct driver_info cx82310_info = {
	.tx_fixup	= cx82310_tx_fixup,
	.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[] = {
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
		.driver_info = (unsigned long) &cx82310_info
	},
	},
	{ },
	{ },