USB: gadget: Fix bug in endpoint feature request processing in ci13xxx_udc
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Mon, 2 May 2011 06:26:30 +0000 (11:56 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 17:25:25 +0000 (10:25 -0700)
commit4c5212b7688955075b166def5ce08b34beb87a9c
treec4d6cee63a5bfc65ca5cb7a07df10efcf955d983
parent986b11b8c7ac3d8752790654637bd944ea18ee79
USB: gadget: Fix bug in endpoint feature request processing in ci13xxx_udc

The OUT endpoints are stored in 0 - hw_ep_max/2 and IN endpoints are
stored from hw_ep_max/2 - hw_ep_max in ci13xxx_ep array.  Retrieve
the IN endpoint correctly while processing endpoint feature requests.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ci13xxx_udc.c