[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <502D1A49.20603@linutronix.de>
Date: Thu, 16 Aug 2012 18:05:29 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Roland Stigge <stigge@...com.de>
CC: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
balbi@...com, gregkh@...uxfoundation.org, arnd@...db.de,
aletes.xgr@...il.com, kevin.wells@....com, srinivas.bakki@....com
Subject: Re: [PATCH] usb: gadget: lpc32xx_udc: Port to new start/stop interface
On 08/16/2012 05:34 PM, Roland Stigge wrote:
> --- linux-2.6.orig/drivers/usb/gadget/lpc32xx_udc.c
> +++ linux-2.6/drivers/usb/gadget/lpc32xx_udc.c
> @@ -2987,14 +2986,14 @@ static irqreturn_t lpc32xx_usb_vbus_irq(
> return IRQ_HANDLED;
> }
>
> -static int lpc32xx_start(struct usb_gadget_driver *driver,
> - int (*bind)(struct usb_gadget *))
> +static int lpc32xx_start(struct usb_gadget *gadget,
> + struct usb_gadget_driver *driver)
> {
> - struct lpc32xx_udc *udc =&controller;
I assume controller is a global var created at probe time and could be
removed now, right?
> - int retval, i;
> + struct lpc32xx_udc *udc =
> + container_of(gadget, struct lpc32xx_udc, gadget);
> + int i;
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists