]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: uvcvideo: Make uvc_control_mapping menu_info field const
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Aug 2018 22:25:33 +0000 (18:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Sep 2018 12:41:17 +0000 (08:41 -0400)
commit52a4eb317c04b33564f26188acb53e6c967a1718
tree3d59707ca091a338bfa5ea7954cee125c6b58f9f
parent8643d237a2f7dab27c6c9189d24c5e7d4a5c5f68
media: uvcvideo: Make uvc_control_mapping menu_info field const

The menu_info field of the uvc_control_mapping structure points to an
array of menu info data that are never changed by the driver. Make the
pointer const and constify the related static arrays in the driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvcvideo.h