Commit 908535cf authored by Art Haas's avatar Art Haas Committed by Greg Kroah-Hartman

[PATCH] C99 initializer for drivers/usb/serial/safe_serial.c

Here's  small patch for the file fixing a few initializers to use C99
style. The patch is against 2.5.50.
parent 01e5a2a6
......@@ -132,13 +132,13 @@ MODULE_PARM_DESC (padded, "Pad to full wMaxPacketSize On/Off");
#define MY_USB_DEVICE(vend,prod,dc,ic,isc) \
match_flags: USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS | \
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS | \
USB_DEVICE_ID_MATCH_INT_CLASS | USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
idVendor: (vend), \
idProduct: (prod),\
bDeviceClass: (dc),\
bInterfaceClass: (ic), \
bInterfaceSubClass: (isc),
.idVendor = (vend), \
.idProduct = (prod),\
.bDeviceClass = (dc),\
.bInterfaceClass = (ic), \
.bInterfaceSubClass = (isc),
static struct usb_device_id id_table[] = {
{MY_USB_DEVICE (0x49f, 0xffff, CDC_DEVICE_CLASS, LINEO_INTERFACE_CLASS, LINEO_INTERFACE_SUBCLASS_SAFESERIAL)}, // Itsy
......
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