]> git.baikalelectronics.ru Git - kernel.git/commit
media: uvcvideo: Constify video_subdev structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 8 Aug 2017 12:56:24 +0000 (08:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:10:24 +0000 (08:10 -0400)
commit95765abb120e9b9df23553a6434dfadc852739e0
treeed03a5fc6a496c695ce82873a8ab6c836b917b8d
parent88784060a226181e32a6ea4db8147e31cad162f0
media: uvcvideo: Constify video_subdev structures

uvc_subdev_ops is only passed as the second argument of
v4l2_subdev_init, which is const, so uvc_subdev_ops can be
const as well.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_entity.c