diff options
author | Macpaul Lin <macpaul@gmail.com> | 2015-05-26 15:01:42 +0800 |
---|---|---|
committer | Li Jun <jun.li@freescale.com> | 2015-07-07 11:18:30 +0800 |
commit | b81a1215ac75f52a95554668617461c8c3318050 (patch) | |
tree | 28ba03c80a99efc87c22939306d5731d5bb9e271 /include/linux | |
parent | 87ebfda21aabd0c4ca9001045533f89b1c01bda5 (diff) |
MLK-11123-4 usb: add usb_otg_caps to usb_gadget structure
Add usb_otg_caps pointer to usb_gadget structure to indicate its
otg capabilities.
Signed-off-by: Macpaul Lin <macpaul@gmail.com>
Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/gadget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index e33170fd446a..fb7a2a7ce7dc 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -509,6 +509,7 @@ struct usb_gadget_ops { * @dev: Driver model state for this abstract device. * @out_epnum: last used out ep number * @in_epnum: last used in ep number + * @otg_caps: OTG capabilities of this gadget. * @sg_supported: true if we can handle scatter-gather * @is_otg: True if the USB device port uses a Mini-AB jack, so that the * gadget driver must provide a USB OTG descriptor. @@ -556,6 +557,7 @@ struct usb_gadget { struct device dev; unsigned out_epnum; unsigned in_epnum; + struct usb_otg_caps *otg_caps; unsigned sg_supported:1; unsigned is_otg:1; |