[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110518101049.GK11981@legolas.emea.dhcp.ti.com>
Date: Wed, 18 May 2011 13:10:53 +0300
From: Felipe Balbi <balbi@...com>
To: Tatyana Brokhman <tlinder@...eaurora.org>
Cc: greg@...ah.com, linux-usb@...r.kernel.org,
linux-arm-msm@...r.kernel.org, balbi@...com, ablay@...eaurora.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v10 4/7] usb:gadget: Add SuperSpeed support to the Gadget
Framework
Hi,
On Tue, May 17, 2011 at 04:03:18PM +0300, Tatyana Brokhman wrote:
> diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
> index 5780f35..5be5f6d 100644
> --- a/drivers/usb/gadget/composite.c
> +++ b/drivers/usb/gadget/composite.c
> @@ -352,7 +392,9 @@ static int config_buf(struct usb_configuration *config,
> list_for_each_entry(f, &config->functions, list) {
> struct usb_descriptor_header **descriptors;
>
> - if (speed == USB_SPEED_HIGH)
> + if (speed == USB_SPEED_SUPER)
> + descriptors = f->ss_descriptors;
> + else if (speed == USB_SPEED_HIGH)
> descriptors = f->hs_descriptors;
on the previous version of this patch I remember asking to convert these
to switch() instead :-)
same to all others below
--
balbi
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists