Commit b23125a4 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: cinergyT2-core: use the newer dvb-usb macros for USB device

In order to make the drivers under dvb-usb more homogeneous,
use the new macro and an enum with the USB model supported by
this driver.

Link: https://lore.kernel.org/linux-media/4b8212adab277a2bf84ab04480eb6fd37edda74f.1648499509.git.mchehab@kernel.orgSigned-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 5441df36
...@@ -193,9 +193,13 @@ static int cinergyt2_usb_probe(struct usb_interface *intf, ...@@ -193,9 +193,13 @@ static int cinergyt2_usb_probe(struct usb_interface *intf,
THIS_MODULE, NULL, adapter_nr); THIS_MODULE, NULL, adapter_nr);
} }
enum {
TERRATEC_CINERGY_T2,
};
static struct usb_device_id cinergyt2_usb_table[] = { static struct usb_device_id cinergyt2_usb_table[] = {
{ USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_T2) }, DVB_USB_DEV(TERRATEC, TERRATEC_CINERGY_T2),
{ 0 } { }
}; };
MODULE_DEVICE_TABLE(usb, cinergyt2_usb_table); MODULE_DEVICE_TABLE(usb, cinergyt2_usb_table);
...@@ -240,7 +244,7 @@ static const struct dvb_usb_device_properties cinergyt2_properties = { ...@@ -240,7 +244,7 @@ static const struct dvb_usb_device_properties cinergyt2_properties = {
.devices = { .devices = {
{ .name = "TerraTec/qanu USB2.0 Highspeed DVB-T Receiver", { .name = "TerraTec/qanu USB2.0 Highspeed DVB-T Receiver",
.cold_ids = {NULL}, .cold_ids = {NULL},
.warm_ids = { &cinergyt2_usb_table[0], NULL }, .warm_ids = { &cinergyt2_usb_table[TERRATEC_CINERGY_T2], NULL },
}, },
{ NULL }, { NULL },
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment