summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@gmail.com>2015-05-26 15:01:42 +0800
committerLi Jun <jun.li@freescale.com>2015-07-22 10:22:09 +0800
commit08bd73fb66684610859fec282f3453531225a132 (patch)
tree92ba867b5c7bb34591409a30ae0987c4875227a2 /include
parentccb2028f1652b5dc3124a9d569a1089af40178ed (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> (cherry picked from commit b81a1215ac75f52a95554668617461c8c3318050)
Diffstat (limited to 'include')
-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;