summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:23:00 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:29 -0600
commit8e2b6619c58cbf3b797d13548fceb5d9d4c34ac3 (patch)
tree647b6f9fdc4bf134cdff65dc76d8347141e3a31b
parent243d7f15e5b4744801e1c7afc193381abaa991ae (diff)
downloadu-boot-imx-8e2b6619c58cbf3b797d13548fceb5d9d4c34ac3.zip
u-boot-imx-8e2b6619c58cbf3b797d13548fceb5d9d4c34ac3.tar.gz
u-boot-imx-8e2b6619c58cbf3b797d13548fceb5d9d4c34ac3.tar.bz2
dm: usb: Add a generic descriptor struct
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>
-rw-r--r--include/linux/usb/ch9.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h
index 10675b4..822fca0 100644
--- 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