summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@gmail.com>2015-07-09 15:18:41 +0800
committerFelipe Balbi <balbi@ti.com>2015-07-29 09:59:20 -0500
commit84704bb3d183e55d042bf57043552f2649443a64 (patch)
tree09f65d51f0eebdb760b2f15d8df7426ba1ed28c1 /include
parent6a88bbe8e30d4beb2320b5a7452242a1fe7889c5 (diff)
downloadlinux-stable-84704bb3d183e55d042bf57043552f2649443a64.tar.gz
linux-stable-84704bb3d183e55d042bf57043552f2649443a64.tar.bz2
linux-stable-84704bb3d183e55d042bf57043552f2649443a64.zip
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> Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
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 15604bb3e524..fffceafb6b8c 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -511,6 +511,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.
@@ -562,6 +563,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;