Commit 4a307b4a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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

In order to make the drivers under dvb-usb more homogeneous,
use the new macro.

Link: https://lore.kernel.org/linux-media/6e7183735aacf33fff86bc709a38aafb6b858dff.1648499509.git.mchehab@kernel.orgSigned-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 86fd1a41
...@@ -162,10 +162,15 @@ static int dtv5100_probe(struct usb_interface *intf, ...@@ -162,10 +162,15 @@ static int dtv5100_probe(struct usb_interface *intf,
return 0; return 0;
} }
enum {
AME_DTV5100,
};
static struct usb_device_id dtv5100_table[] = { static struct usb_device_id dtv5100_table[] = {
{ USB_DEVICE(USB_VID_AME, USB_PID_AME_DTV5100) }, DVB_USB_DEV(AME, AME_DTV5100),
{ } /* Terminating entry */ { }
}; };
MODULE_DEVICE_TABLE(usb, dtv5100_table); MODULE_DEVICE_TABLE(usb, dtv5100_table);
static struct dvb_usb_device_properties dtv5100_properties = { static struct dvb_usb_device_properties dtv5100_properties = {
...@@ -201,7 +206,7 @@ static struct dvb_usb_device_properties dtv5100_properties = { ...@@ -201,7 +206,7 @@ static struct dvb_usb_device_properties dtv5100_properties = {
{ {
.name = "AME DTV-5100 USB2.0 DVB-T", .name = "AME DTV-5100 USB2.0 DVB-T",
.cold_ids = { NULL }, .cold_ids = { NULL },
.warm_ids = { &dtv5100_table[0], NULL }, .warm_ids = { &dtv5100_table[AME_DTV5100], 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