media: dvb-usb-v2: use DVB_USB_DEVICE() macro
Instead of using USB_DEVICE() macro directly, use the DVB_USB_DEVICE() one, as other dvb-usb-v2 devices. The usage of the new macro makes cleaner and easier to parse the supported device names in a way that it would be easily parseable to generate cardlists. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
49c6644eb6
commit
8cbaa12100
|
@ -332,22 +332,17 @@ static const struct dvb_usb_device_properties ec168_props = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct dvb_usb_driver_info ec168_driver_info = {
|
|
||||||
.name = "E3C EC168 reference design",
|
|
||||||
.props = &ec168_props,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct usb_device_id ec168_id[] = {
|
static const struct usb_device_id ec168_id[] = {
|
||||||
{ USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168),
|
{ DVB_USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168,
|
||||||
.driver_info = (kernel_ulong_t) &ec168_driver_info },
|
&ec168_props, "E3C EC168 reference design", NULL)},
|
||||||
{ USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_2),
|
{ DVB_USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_2,
|
||||||
.driver_info = (kernel_ulong_t) &ec168_driver_info },
|
&ec168_props, "E3C EC168 reference design", NULL)},
|
||||||
{ USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_3),
|
{ DVB_USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_3,
|
||||||
.driver_info = (kernel_ulong_t) &ec168_driver_info },
|
&ec168_props, "E3C EC168 reference design", NULL)},
|
||||||
{ USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_4),
|
{ DVB_USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_4,
|
||||||
.driver_info = (kernel_ulong_t) &ec168_driver_info },
|
&ec168_props, "E3C EC168 reference design", NULL)},
|
||||||
{ USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_5),
|
{ DVB_USB_DEVICE(USB_VID_E3C, USB_PID_E3C_EC168_5,
|
||||||
.driver_info = (kernel_ulong_t) &ec168_driver_info },
|
&ec168_props, "E3C EC168 reference design", NULL)},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(usb, ec168_id);
|
MODULE_DEVICE_TABLE(usb, ec168_id);
|
||||||
|
|
Loading…
Reference in New Issue