freemyipod r757 - Code Review

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

Diff [purge]

Index: umsboot/usb/usb.c
@@ -191,7 +191,7 @@
192192 static bool locked;
193193
194194
195 -static struct usb_device_descriptor CACHEALIGN_ATTR device_descriptor =
 195+static struct usb_device_descriptor device_descriptor CACHEALIGN_ATTR =
196196 {
197197 .bLength = sizeof(struct usb_device_descriptor),
198198 .bDescriptorType = USB_DT_DEVICE,
@@ -215,7 +215,7 @@
216216 struct usb_interface_descriptor interface_descriptor;
217217 struct usb_endpoint_descriptor endpoint1_descriptor;
218218 struct usb_endpoint_descriptor endpoint2_descriptor;
219 -} __attribute__((packed)) CACHEALIGN_ATTR config_bundle =
 219+} __attribute__((packed)) config_bundle CACHEALIGN_ATTR =
220220 {
221221 .config_descriptor =
222222 {
@@ -262,7 +262,7 @@
263263 }
264264 };
265265
266 -static struct usb_string_descriptor CACHEALIGN_ATTR string_vendorname =
 266+static struct usb_string_descriptor string_vendorname CACHEALIGN_ATTR =
267267 {
268268 30,
269269 USB_DT_STRING,
@@ -269,7 +269,7 @@
270270 {'f', 'r', 'e', 'e', 'm', 'y', 'i', 'p', 'o', 'd', '.', 'o', 'r', 'g'}
271271 };
272272
273 -static struct usb_string_descriptor CACHEALIGN_ATTR string_devicename =
 273+static struct usb_string_descriptor string_devicename CACHEALIGN_ATTR =
274274 {
275275 16,
276276 USB_DT_STRING,
@@ -276,7 +276,7 @@
277277 {'U', 'M', 'S', 'b', 'o', 'o', 't'}
278278 };
279279
280 -static const struct usb_string_descriptor CACHEALIGN_ATTR lang_descriptor =
 280+static const struct usb_string_descriptor lang_descriptor CACHEALIGN_ATTR =
281281 {
282282 4,
283283 USB_DT_STRING,