projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243d7f1
)
dm: usb: Add a generic descriptor struct
author
Simon Glass
<sjg@chromium.org>
Wed, 25 Mar 2015 18:23:00 +0000
(12:23 -0600)
committer
Simon Glass
<sjg@chromium.org>
Sat, 18 Apr 2015 17:11:29 +0000
(11:11 -0600)
This is useful for creating lists of descriptors, and is better than using
void * for this purpose.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
include/linux/usb/ch9.h
patch
|
blob
|
history
diff --git
a/include/linux/usb/ch9.h
b/include/linux/usb/ch9.h
index 10675b4d8ab575545c08dfab1c2394f4a27905ca..822fca0357b551021c7039f7014089c606c06e1a 100644
(file)
--- a/
include/linux/usb/ch9.h
+++ b/
include/linux/usb/ch9.h
@@
-379,6
+379,11
@@
struct usb_endpoint_descriptor {
#define USB_DT_ENDPOINT_SIZE 7
#define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */
+/* Used to access common fields */
+struct usb_generic_descriptor {
+ __u8 bLength;
+ __u8 bDescriptorType;
+};
/*
* Endpoints