usb: gadget: move find_ep() from epautoconf to udc-core
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 6 Aug 2015 12:11:12 +0000 (14:11 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Aug 2015 14:33:14 +0000 (09:33 -0500)
Move find_ep() to udc-core and rename it to gadget_find_ep_by_name().
It can be used in UDC drivers, especially in 'match_ep' callback after
moving chip-specific endpoint matching logic from epautoconf to UDC
drivers.

Replace all calls of find_ep() function with gadget_find_ep_by_name().

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/epautoconf.c
drivers/usb/gadget/udc/udc-core.c
include/linux/usb/gadget.h

Simple merge
Simple merge
Simple merge