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)
commitb0aea0037c8896b8e69cad3f6e828782789c1edf
tree032c9179b1ad669368afa5311c3abdc00f0affe8
parent4278c687f697b651ab0c771114564da5ed006f22
usb: gadget: move find_ep() from epautoconf to udc-core

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