media: uvcvideo: Constify descriptor buffers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 20 Apr 2023 03:47:57 +0000 (06:47 +0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:11:57 +0000 (14:11 +0100)
commit102df33eba00a0af226279b8da244af85cf47a39
tree8f99a86cd287c3f2754bb6a8de18ae9fa934e4d0
parentaf621ba2ede802bcd01b9d9af539f95030e21795
media: uvcvideo: Constify descriptor buffers

There is no need to modify the content of UVC descriptor buffers during
parsing. Make all the corresponding pointers const to avoid unintended
modifications.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/uvc/uvc_driver.c