aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-04 20:12:55 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 07:56:25 -0300
commit0359b5fa9eff3c07e2c9a8993a471816f42990b7 (patch)
treec5bb0289f016e06bf159445186bf893e804dcbc4
parent[media] dvb_usb_v2: clean firmware downloading routines (diff)
[media] dvb_usb_v2: add macro for filling usb_device_id table entry
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb.h b/drivers/media/dvb/dvb-usb/dvb_usb.h
index 4aa5bd190aec..e90d81f7e3d0 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb_usb.h
@@ -66,6 +66,16 @@ struct dvb_usb_driver_info {
const struct dvb_usb_device_properties *props;
};
+#define DVB_USB_DEVICE(vend, prod, props_, name_, rc) \
+ .match_flags = USB_DEVICE_ID_MATCH_DEVICE, \
+ .idVendor = (vend), \
+ .idProduct = (prod), \
+ .driver_info = (kernel_ulong_t) &((struct dvb_usb_driver_info) { \
+ .props = (props_), \
+ .name = (name_), \
+ .rc_map = (rc), \
+ })
+
struct dvb_usb_device;
struct dvb_usb_adapter;
struct usb_data_stream;