usb: gadget: uvc: fix try format returns on uncompressed formats
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 21 Feb 2024 22:08:31 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2024 09:42:03 +0000 (10:42 +0100)
commit7a700d8f2431b681f2dae1118d62177719912f5d
tree19e9f809ca42ad5bbb3afec53554823a7f383cdf
parent4cece764965020c22cff7665b18a012006359095
usb: gadget: uvc: fix try format returns on uncompressed formats

When setting uncompressed formats, the values of bytesperline and
sizeimage can already be determined by using the v4l2_fill_pixfmt helper
function. We change the try_fmt function to use the helper instead.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20240221-uvc-gadget-uncompressed-v1-1-f55e97287cae@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_v4l2.c