Commit 84704bb3 authored by Macpaul Lin's avatar Macpaul Lin Committed by Felipe Balbi

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: default avatarMacpaul Lin <macpaul@gmail.com>
Signed-off-by: default avatarLi Jun <jun.li@freescale.com>
Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 6a88bbe8
...@@ -511,6 +511,7 @@ struct usb_gadget_ops { ...@@ -511,6 +511,7 @@ struct usb_gadget_ops {
* @dev: Driver model state for this abstract device. * @dev: Driver model state for this abstract device.
* @out_epnum: last used out ep number * @out_epnum: last used out ep number
* @in_epnum: last used in 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 * @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 * @is_otg: True if the USB device port uses a Mini-AB jack, so that the
* gadget driver must provide a USB OTG descriptor. * gadget driver must provide a USB OTG descriptor.
...@@ -562,6 +563,7 @@ struct usb_gadget { ...@@ -562,6 +563,7 @@ struct usb_gadget {
struct device dev; struct device dev;
unsigned out_epnum; unsigned out_epnum;
unsigned in_epnum; unsigned in_epnum;
struct usb_otg_caps *otg_caps;
unsigned sg_supported:1; unsigned sg_supported:1;
unsigned is_otg:1; unsigned is_otg:1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment