Skip to content

Commit

Permalink
[media] dvb_usb_v2: add macro for filling usb_device_id table entry
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent a0d72d2 commit 0359b5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0359b5f

Please sign in to comment.