usb: gadget: factor out alloc_ep_req
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 7 Nov 2013 07:41:26 +0000 (08:41 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:26:38 +0000 (07:26 +0200)
commit531205dd8653af76b4f570c373ffa064c259dbb6
tree085cc80e0f0372562dab1be1dbd633cb269eb013
parent56b0d0e41b21ebeedf225285c74758a4b3f03d5b
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]