On Wed, 17 Jun 2015 13:43:35 +0800 Li Jun <jun.li@xxxxxxxxxxxxx> wrote: > This patch adds a structure usb_otg_caps to cover all otg related > capabilities of the device, including otg revision, and if hnp/srp/adp > is supported. > > Signed-off-by: Li Jun <jun.li@xxxxxxxxxxxxx> Reviewed-by: Roger Quadros <rogerq@xxxxxx> cheers, -roger > --- > include/linux/usb/otg.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h > index 52661c5..bd1dcf8 100644 > --- a/include/linux/usb/otg.h > +++ b/include/linux/usb/otg.h > @@ -41,6 +41,21 @@ struct usb_otg { > > }; > > +/** > + * struct usb_otg_caps - describes the otg capabilities of the device > + * @otg_rev: The OTG revision number the device is compliant with, it's > + * in binary-coded decimal (i.e. 2.0 is 0200H). > + * @hnp_support: Indicates if the device supports HNP. > + * @srp_support: Indicates if the device supports SRP. > + * @adp_support: Indicates if the device supports ADP. > + */ > +struct usb_otg_caps { > + u16 otg_rev; > + bool hnp_support; > + bool srp_support; > + bool adp_support; > +}; > + > extern const char *usb_otg_state_string(enum usb_otg_state state); > > /* Context: can sleep */ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html