Commit 8e2b6619c58cbf3b797d13548fceb5d9d4c34ac3
1 parent
243d7f15e5
Exists in
v2017.01-smarct4x
and in
35 other branches
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>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
include/linux/usb/ch9.h
... | ... | @@ -379,6 +379,11 @@ |
379 | 379 | #define USB_DT_ENDPOINT_SIZE 7 |
380 | 380 | #define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */ |
381 | 381 | |
382 | +/* Used to access common fields */ | |
383 | +struct usb_generic_descriptor { | |
384 | + __u8 bLength; | |
385 | + __u8 bDescriptorType; | |
386 | +}; | |
382 | 387 | |
383 | 388 | /* |
384 | 389 | * Endpoints |