Commit d6a1a64a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] hfc_usb: fix usb device table

We need to use the USB_DEVICE macro here, else the modinfo aliases go all wrong.

Also, correctly terminate the table, as noted by Dave Jones <davej@redhat.com>

Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Acked-by: default avatarKarsten Keil <kkeil@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 93588e22
...@@ -71,78 +71,68 @@ typedef struct { ...@@ -71,78 +71,68 @@ typedef struct {
/****************************************/ /****************************************/
static struct usb_device_id hfcusb_idtab[] = { static struct usb_device_id hfcusb_idtab[] = {
{ {
.idVendor = 0x0959, USB_DEVICE(0x0959, 0x2bd0),
.idProduct = 0x2bd0,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_OFF, {4, 0, 2, 1}, {LED_OFF, {4, 0, 2, 1},
"ISDN USB TA (Cologne Chip HFC-S USB based)"}), "ISDN USB TA (Cologne Chip HFC-S USB based)"}),
}, },
{ {
.idVendor = 0x0675, USB_DEVICE(0x0675, 0x1688),
.idProduct = 0x1688,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {1, 2, 0, 0}, {LED_SCHEME1, {1, 2, 0, 0},
"DrayTek miniVigor 128 USB ISDN TA"}), "DrayTek miniVigor 128 USB ISDN TA"}),
}, },
{ {
.idVendor = 0x07b0, USB_DEVICE(0x07b0, 0x0007),
.idProduct = 0x0007,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {0x80, -64, -32, -16}, {LED_SCHEME1, {0x80, -64, -32, -16},
"Billion tiny USB ISDN TA 128"}), "Billion tiny USB ISDN TA 128"}),
}, },
{ {
.idVendor = 0x0742, USB_DEVICE(0x0742, 0x2008),
.idProduct = 0x2008,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {4, 0, 2, 1}, {LED_SCHEME1, {4, 0, 2, 1},
"Stollmann USB TA"}), "Stollmann USB TA"}),
}, },
{ {
.idVendor = 0x0742, USB_DEVICE(0x0742, 0x2009),
.idProduct = 0x2009,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {4, 0, 2, 1}, {LED_SCHEME1, {4, 0, 2, 1},
"Aceex USB ISDN TA"}), "Aceex USB ISDN TA"}),
}, },
{ {
.idVendor = 0x0742, USB_DEVICE(0x0742, 0x200A),
.idProduct = 0x200A,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {4, 0, 2, 1}, {LED_SCHEME1, {4, 0, 2, 1},
"OEM USB ISDN TA"}), "OEM USB ISDN TA"}),
}, },
{ {
.idVendor = 0x08e3, USB_DEVICE(0x08e3, 0x0301),
.idProduct = 0x0301,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {2, 0, 1, 4}, {LED_SCHEME1, {2, 0, 1, 4},
"Olitec USB RNIS"}), "Olitec USB RNIS"}),
}, },
{ {
.idVendor = 0x07fa, USB_DEVICE(0x07fa, 0x0846),
.idProduct = 0x0846,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {0x80, -64, -32, -16}, {LED_SCHEME1, {0x80, -64, -32, -16},
"Bewan Modem RNIS USB"}), "Bewan Modem RNIS USB"}),
}, },
{ {
.idVendor = 0x07fa, USB_DEVICE(0x07fa, 0x0847),
.idProduct = 0x0847,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {0x80, -64, -32, -16}, {LED_SCHEME1, {0x80, -64, -32, -16},
"Djinn Numeris USB"}), "Djinn Numeris USB"}),
}, },
{ {
.idVendor = 0x07b0, USB_DEVICE(0x07b0, 0x0006),
.idProduct = 0x0006,
.driver_info = (unsigned long) &((hfcsusb_vdata) .driver_info = (unsigned long) &((hfcsusb_vdata)
{LED_SCHEME1, {0x80, -64, -32, -16}, {LED_SCHEME1, {0x80, -64, -32, -16},
"Twister ISDN TA"}), "Twister ISDN TA"}),
}, },
{ }
}; };
/***************************************************************/ /***************************************************************/
/* structure defining input+output fifos (interrupt/bulk mode) */ /* structure defining input+output fifos (interrupt/bulk mode) */
/***************************************************************/ /***************************************************************/
......
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