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>
Fri, 8 Jul 2022 13:00:32 +0000 (15:00 +0200)
commit23385cec5f354794dadced7f28c31da7ae3eb54c
tree48ffbf2f9d08ea2b3baf3a9a20e07ff0b8b1cc45
parent5ea5746dfa051eaca6c79a598ff7dc4ec911cada
usb: dwc3: gadget: refactor dwc3_repare_one_trb

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