usb: dwc3: gadget: refactor dwc3_repare_one_trb
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 4 Jul 2022 14:18:11 +0000 (16:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:59 +0000 (14:22 +0200)
commit332a8c027aa379779beb7af0c4e384a84633fab4
tree3790baa8f15700b844d13118ac9fcd12872874eb
parentf0782cf2dce00ac353de8f2a5fd26350f7f0269b
usb: dwc3: gadget: refactor dwc3_repare_one_trb

commit 23385cec5f354794dadced7f28c31da7ae3eb54c upstream.

The function __dwc3_prepare_one_trb has many parameters. Since it is
only used in dwc3_prepare_one_trb there is no point in keeping the
function. We merge both functions and get rid of the big list of
parameters.

Fixes: 40d829fb2ec6 ("usb: dwc3: gadget: Correct ISOC DATA PIDs for short packets")
Cc: stable <stable@kernel.org>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220704141812.1532306-2-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c