mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
media: technisat-usb2: 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/c125c28aeb3d4344b632e1f99d81c433917f2a4c.1648499509.git.mchehab@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
710801c7ba
commit
ff9b0c51d8
@ -689,10 +689,15 @@ static int technisat_usb2_rc_query(struct dvb_usb_device *d)
|
||||
}
|
||||
|
||||
/* DVB-USB and USB stuff follows */
|
||||
static struct usb_device_id technisat_usb2_id_table[] = {
|
||||
{ USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_DVB_S2) },
|
||||
{ 0 } /* Terminating entry */
|
||||
enum {
|
||||
TECHNISAT_USB2_DVB_S2,
|
||||
};
|
||||
|
||||
static struct usb_device_id technisat_usb2_id_table[] = {
|
||||
DVB_USB_DEV(TECHNISAT, TECHNISAT_USB2_DVB_S2),
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(usb, technisat_usb2_id_table);
|
||||
|
||||
/* device description */
|
||||
@ -738,7 +743,7 @@ static struct dvb_usb_device_properties technisat_usb2_devices = {
|
||||
.num_device_descs = 1,
|
||||
.devices = {
|
||||
{ "Technisat SkyStar USB HD (DVB-S/S2)",
|
||||
{ &technisat_usb2_id_table[0], NULL },
|
||||
{ &technisat_usb2_id_table[TECHNISAT_USB2_DVB_S2], NULL },
|
||||
{ NULL },
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user