Commit 35945ccf authored by Art Haas's avatar Art Haas Committed by Greg Kroah-Hartman

[PATCH] C99 initializer for include/linux/usb.h

Here's a small patch for switching the file to use C99 initializers. The
patch is against 2.5.50.
parent c1d8b7db
...@@ -414,7 +414,7 @@ struct usb_device_id { ...@@ -414,7 +414,7 @@ struct usb_device_id {
* specific device. * specific device.
*/ */
#define USB_DEVICE(vend,prod) \ #define USB_DEVICE(vend,prod) \
match_flags: USB_DEVICE_ID_MATCH_DEVICE, idVendor: (vend), idProduct: (prod) .match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = (vend), .idProduct = (prod)
/** /**
* USB_DEVICE_VER - macro used to describe a specific usb device with a version range * USB_DEVICE_VER - macro used to describe a specific usb device with a version range
* @vend: the 16 bit USB Vendor ID * @vend: the 16 bit USB Vendor ID
...@@ -426,7 +426,7 @@ struct usb_device_id { ...@@ -426,7 +426,7 @@ struct usb_device_id {
* specific device, with a version range. * specific device, with a version range.
*/ */
#define USB_DEVICE_VER(vend,prod,lo,hi) \ #define USB_DEVICE_VER(vend,prod,lo,hi) \
match_flags: USB_DEVICE_ID_MATCH_DEVICE_AND_VERSION, idVendor: (vend), idProduct: (prod), bcdDevice_lo: (lo), bcdDevice_hi: (hi) .match_flags = USB_DEVICE_ID_MATCH_DEVICE_AND_VERSION, .idVendor = (vend), .idProduct = (prod), .bcdDevice_lo = (lo), .bcdDevice_hi = (hi)
/** /**
* USB_DEVICE_INFO - macro used to describe a class of usb devices * USB_DEVICE_INFO - macro used to describe a class of usb devices
...@@ -438,7 +438,7 @@ struct usb_device_id { ...@@ -438,7 +438,7 @@ struct usb_device_id {
* specific class of devices. * specific class of devices.
*/ */
#define USB_DEVICE_INFO(cl,sc,pr) \ #define USB_DEVICE_INFO(cl,sc,pr) \
match_flags: USB_DEVICE_ID_MATCH_DEV_INFO, bDeviceClass: (cl), bDeviceSubClass: (sc), bDeviceProtocol: (pr) .match_flags = USB_DEVICE_ID_MATCH_DEV_INFO, .bDeviceClass = (cl), .bDeviceSubClass = (sc), .bDeviceProtocol = (pr)
/** /**
* USB_INTERFACE_INFO - macro used to describe a class of usb interfaces * USB_INTERFACE_INFO - macro used to describe a class of usb interfaces
...@@ -450,7 +450,7 @@ struct usb_device_id { ...@@ -450,7 +450,7 @@ struct usb_device_id {
* specific class of interfaces. * specific class of interfaces.
*/ */
#define USB_INTERFACE_INFO(cl,sc,pr) \ #define USB_INTERFACE_INFO(cl,sc,pr) \
match_flags: USB_DEVICE_ID_MATCH_INT_INFO, bInterfaceClass: (cl), bInterfaceSubClass: (sc), bInterfaceProtocol: (pr) .match_flags = USB_DEVICE_ID_MATCH_INT_INFO, .bInterfaceClass = (cl), .bInterfaceSubClass = (sc), .bInterfaceProtocol = (pr)
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
......
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