usb: gadget: uvc: track frames in format entries
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 21 Apr 2022 21:14:25 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:10:36 +0000 (22:10 +0200)
commita2673d570bd648851e00ac531bdf695f4ebb4f78
treeab057192773d09e290f296d6d7b62d12ccd7fb98
parente2fa7b36de90de26da11b7f37fe0ce16935ab8a8
usb: gadget: uvc: track frames in format entries

Just like the header is tracking the formats in a linked list, in this
patch we track the frames in a linked list of the formats. It
simplifies the parsing of the configfs structure.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220421211427.3400834-6-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_configfs.c
drivers/usb/gadget/function/uvc_configfs.h