usb: gadget: add generic map/unmap request utilities
authorFelipe Balbi <balbi@ti.com>
Thu, 15 Dec 2011 11:31:48 +0000 (13:31 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 Feb 2012 12:48:23 +0000 (14:48 +0200)
commita698908d3b3be915ac20cd37faeff1216f6b4fe8
tree208d35c5bc9d49ab5fcb65dd380429cc532426bd
parentc15e03e1553d8fb334de26727b0edadd582a46e7
usb: gadget: add generic map/unmap request utilities

such utilities are currently duplicated on all UDC
drivers basically with the same structure. Let's group
all implementations into one generic implementation
and get rid of that duplication.

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