Michael Grzeschik 466be4c9a6 usb: uvc: move uvc_fmts and uvc_format_by_guid to own compile unit
The media driver USB_VIDEO_CLASS and USB_F_UVC are using the same
function uvc_format_by_guid. Since the function is inline, every user
will get a copy of the used uvc_fmts array and the function. This patch
moves the code to an own compile unit and add this dependency as
UVC_COMMON to both users.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Tested-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20230126231456.3402323-4-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-31 09:40:42 +01:00
..
2022-12-16 03:54:54 -08:00
2022-12-13 11:36:58 -08:00
2022-03-18 05:58:35 +01:00
2022-12-21 09:44:41 -08:00
2022-12-16 03:54:54 -08:00
2022-03-23 14:51:35 -07:00
2022-12-13 11:36:58 -08:00
2022-11-25 07:55:21 +00:00
2022-12-21 09:44:41 -08:00
2022-03-12 16:59:52 +01:00