summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@gmail.com>2015-05-26 15:01:42 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:51 -0500
commitfd20763c71d2b4fc67c4065d09884e713b587774 (patch)
treecf3f6a53f97e9ff6049248b0f87c5a3fbfdf0bbf /include/linux/usb
parent6f497d4b64cfdc16569722d8a65d7963edd73e16 (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/usb')
-rw-r--r--include/linux/usb/gadget.h2
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;