Commit 79fea11e authored by Art Haas's avatar Art Haas Committed by Greg Kroah-Hartman

[PATCH] designated initializer patch for drivers_usb_net_pegasus.c

  Here's a patch for additional designated initializers for
  drivers/usb/net/pegasus.c. Patch is against 2.5.27.
parent 98fdd142
...@@ -62,7 +62,7 @@ static int multicast_filter_limit = 32; ...@@ -62,7 +62,7 @@ static int multicast_filter_limit = 32;
static struct usb_eth_dev usb_dev_id[] = { static struct usb_eth_dev usb_dev_id[] = {
#define PEGASUS_DEV(pn, vid, pid, flags) \ #define PEGASUS_DEV(pn, vid, pid, flags) \
{name:pn, vendor:vid, device:pid, private:flags}, {.name = pn, .vendor = vid, .device = pid, .private = flags},
#include "pegasus.h" #include "pegasus.h"
#undef PEGASUS_DEV #undef PEGASUS_DEV
{NULL, 0, 0, 0} {NULL, 0, 0, 0}
...@@ -70,7 +70,7 @@ static struct usb_eth_dev usb_dev_id[] = { ...@@ -70,7 +70,7 @@ static struct usb_eth_dev usb_dev_id[] = {
static struct usb_device_id pegasus_ids[] = { static struct usb_device_id pegasus_ids[] = {
#define PEGASUS_DEV(pn, vid, pid, flags) \ #define PEGASUS_DEV(pn, vid, pid, flags) \
{match_flags: USB_DEVICE_ID_MATCH_DEVICE, idVendor:vid, idProduct:pid}, {.match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = vid, .idProduct = pid},
#include "pegasus.h" #include "pegasus.h"
#undef PEGASUS_DEV #undef PEGASUS_DEV
{} {}
......
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