usb: gadget: functionfs: Factorize wait-for-endpoint code
authorPaul Cercueil <paul@crapouillou.net>
Tue, 30 Jan 2024 12:23:38 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:00:09 +0000 (17:00 +0100)
commit799970a5b15deec8bbcb098b11a73d8acc55d075
treeebb7933e0da2d0de970295bc59b785f64f6851d3
parent99f638dd49ca80538addec6b3733ddb5784c9373
usb: gadget: functionfs: Factorize wait-for-endpoint code

This exact same code was duplicated in two different places.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20240130122340.54813-3-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_fs.c