usb: gadget: factor out alloc_ep_req
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 7 Nov 2013 07:41:26 +0000 (08:41 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 19:41:32 +0000 (13:41 -0600)
commit1efd54eab2b60c68c2ce75ea635306cef847d751
treeb810315964acc35866cf4cda9c1032a6c71e83bf
parenta01091e5ce866562ea2638a80f2241d8d6bde164
usb: gadget: factor out alloc_ep_req

alloc_ep_req() is a function repeated in several modules.
Make a common implementation and use it.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Makefile
drivers/usb/gadget/f_hid.c
drivers/usb/gadget/f_loopback.c
drivers/usb/gadget/f_midi.c
drivers/usb/gadget/f_sourcesink.c
drivers/usb/gadget/g_zero.h
drivers/usb/gadget/u_f.c [new file with mode: 0644]
drivers/usb/gadget/u_f.h [new file with mode: 0644]