usb: uvc: make uvc_format_desc table const
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 26 Jan 2023 23:14:55 +0000 (00:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 08:40:42 +0000 (09:40 +0100)
commit8ecb17a86c0fbb86ea9fb4fa26e742600e945794
treec4b2923d9a52e4615f2d8d4e64289307cba791a5
parent466be4c9a6f0b7810991b4ac6c3e55345ea63954
usb: uvc: make uvc_format_desc table const

Since the uvc_fmts array can not be modified we declare it const and
change every user of the uvc_format_by_guid function aswell.

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-5-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/common/uvc.c
drivers/media/usb/uvc/uvc_driver.c
drivers/usb/gadget/function/uvc_v4l2.c
include/linux/usb/uvc.h