[PATCH 03/10] USB: fixup usb_hub_descriptor length name

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Wed Jul 23 06:51:44 PDT 2014


All other descriptors have their length field named bLength, except
imported usb_hub_descriptor from Linux uses bDescLength. Adjust the
name to match the others.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
---
To: Sascha Hauer <s.hauer at pengutronix.de>
Cc: barebox at lists.infradead.org
---
 include/usb/ch11.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/usb/ch11.h b/include/usb/ch11.h
index 924a9ea64c5e..93f891aea753 100644
--- a/include/usb/ch11.h
+++ b/include/usb/ch11.h
@@ -232,7 +232,7 @@ struct usb_hub_status {
 #define USB_HUB_PR_SS		3 /* Super speed hub */
 
 struct usb_hub_descriptor {
-	__u8  bDescLength;
+	__u8  bLength;
 	__u8  bDescriptorType;
 	__u8  bNbrPorts;
 	__le16 wHubCharacteristics;
-- 
2.0.0




More information about the barebox mailing list