usb: gadget: move ep_matches() from epautoconf to udc-core
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 6 Aug 2015 12:11:11 +0000 (14:11 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Aug 2015 14:32:57 +0000 (09:32 -0500)
commit4278c687f697b651ab0c771114564da5ed006f22
tree7ce7c64369bba53a2087b60e284f5accf47fd1c5
parent596c154d62330ea0bb4e3c3e50afa3682e50b617
usb: gadget: move ep_matches() from epautoconf to udc-core

Move ep_matches() function to udc-core and rename it to
usb_gadget_ep_match_desc(). This function can be used by UDC drivers
in 'match_ep' callback to avoid writing lots of repetitive code.

Replace all calls of ep_matches() with usb_gadget_ep_match_desc().

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