]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c502ed4deeb5cf0a989144e555e198b62c5857a
tree2859b92667049c57cae1c6ca02fd7897d6f3534f
parenta850c858a56ba17c658e4f99edb9cd20a5974455
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