usb: gadget: u_audio: remove struct uac_req
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 18 Jan 2021 08:46:41 +0000 (09:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Jan 2021 17:43:09 +0000 (18:43 +0100)
commit2986511780438274646f63a171ac60e61313032c
tree0a7e3523fb545b3f66f0cdc9f511a8467c9ab7bb
parent25dbd75dd506cd19ab4405a7ef0816042fe6892f
usb: gadget: u_audio: remove struct uac_req

'struct uac_req' purpose is to link 'struct usb_request' to the
corresponding 'struct uac_rtd_params'. However member req is never
used. Using the context of the usb request, we can keep track of the
corresponding 'struct uac_rtd_params' just as well, without allocating
extra memory.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20210118084642.322510-4-jbrunet@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/u_audio.c