freemyipod r756 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r755‎ | r756 | r757 >
Date:14:10, 9 August 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: USB driver: Fix wrong descriptor sizes
Modified paths:
  • /emcore/trunk/usb/usb.c (modified) (history)

Diff [purge]

Index: emcore/trunk/usb/usb.c
@@ -118,7 +118,7 @@
119119 extern int _poolend; // used here, and we only need the address, so just make it happy...
120120
121121
122 -static struct usb_device_descriptor CACHEALIGN_ATTR device_descriptor =
 122+static struct usb_device_descriptor device_descriptor CACHEALIGN_ATTR =
123123 {
124124 .bLength = sizeof(struct usb_device_descriptor),
125125 .bDescriptorType = USB_DT_DEVICE,
@@ -144,7 +144,7 @@
145145 struct usb_endpoint_descriptor endpoint2_descriptor;
146146 struct usb_endpoint_descriptor endpoint3_descriptor;
147147 struct usb_endpoint_descriptor endpoint4_descriptor;
148 -} __attribute__((packed)) CACHEALIGN_ATTR config_bundle =
 148+} __attribute__((packed)) config_bundle CACHEALIGN_ATTR =
149149 {
150150 .config_descriptor =
151151 {
@@ -209,7 +209,7 @@
210210 }
211211 };
212212
213 -static struct usb_string_descriptor CACHEALIGN_ATTR string_vendor =
 213+static struct usb_string_descriptor string_vendor CACHEALIGN_ATTR =
214214 {
215215 30,
216216 USB_DT_STRING,
@@ -216,7 +216,7 @@
217217 {'f', 'r', 'e', 'e', 'm', 'y', 'i', 'p', 'o', 'd', '.', 'o', 'r', 'g'}
218218 };
219219
220 -static struct usb_string_descriptor CACHEALIGN_ATTR string_product =
 220+static struct usb_string_descriptor string_product CACHEALIGN_ATTR =
221221 {
222222 32,
223223 USB_DT_STRING,
@@ -223,7 +223,7 @@
224224 {'e', 'm', 'C', 'O', 'R', 'E', ' ', 'D', 'e', 'b', 'u', 'g', 'g', 'e', 'r'}
225225 };
226226
227 -static const struct usb_string_descriptor CACHEALIGN_ATTR lang_descriptor =
 227+static const struct usb_string_descriptor lang_descriptor CACHEALIGN_ATTR =
228228 {
229229 4,
230230 USB_DT_STRING,