usb: gadget: configure endpoint according to gadget speed
authorTatyana Brokhman <tlinder@codeaurora.org>
Tue, 28 Jun 2011 13:33:49 +0000 (16:33 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 18:14:36 +0000 (11:14 -0700)
commit48767a4e8263620c347c3fa17812c943dd0fc2fa
tree2859b92667049c57cae1c6ca02fd7897d6f3534f
parent72c973dd2b01b212a159faa330a2bc641a3ed809
usb: gadget: configure endpoint according to gadget speed

Add config_ep_by_speed() to configure the endpoint
according to the gadget speed.

Using this function will spare the FDs from handling
the endpoint chosen descriptor.

Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c
drivers/usb/gadget/epautoconf.c
include/linux/usb/composite.h
include/linux/usb/gadget.h