On Fri, Feb 07, 2014 at 01:47:18PM +0800, Peter Chen wrote:
> On Fri, Jan 3, 2014 at 4:45 PM, Peter Chen <peter.c...@freescale.com> wrote:
> > We need to use gadget_is_otg to check if the gadget is really
> > otg support at runtime, other composite gadget drivers have already
> > followed this method.
> >
> > Signed-off-by: Peter Chen <peter.c...@freescale.com>
> > ---
> >  drivers/usb/gadget/printer.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c
> > index bf7a56b..69b76ef 100644
> > --- a/drivers/usb/gadget/printer.c
> > +++ b/drivers/usb/gadget/printer.c
> > @@ -1157,7 +1157,7 @@ static int __init printer_bind_config(struct 
> > usb_configuration *c)
> >
> >         usb_gadget_set_selfpowered(gadget);
> >
> > -       if (gadget->is_otg) {
> > +       if (gadget_is_otg(gadget)) {
> >                 otg_descriptor.bmAttributes |= USB_OTG_HNP;
> >                 printer_cfg_driver.descriptors = otg_desc;
> >                 printer_cfg_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
> > --
> 
> ping...

Felipe is on vacation, give him a few weeks please.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to