summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/uvc
diff options
context:
space:
mode:
authorJulia Lawall2017-08-08 14:56:24 +0200
committerMauro Carvalho Chehab2017-08-20 14:10:24 +0200
commit54220790149809fd48dfb999f732b345b7097a1a (patch)
treeed03a5fc6a496c695ce82873a8ab6c836b917b8d /drivers/media/usb/uvc
parentmedia: uvcvideo: Convert from using an atomic variable to a reference count (diff)
downloadkernel-qcow2-linux-54220790149809fd48dfb999f732b345b7097a1a.tar.gz
kernel-qcow2-linux-54220790149809fd48dfb999f732b345b7097a1a.tar.xz
kernel-qcow2-linux-54220790149809fd48dfb999f732b345b7097a1a.zip
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>
Diffstat (limited to 'drivers/media/usb/uvc')
-rw-r--r--drivers/media/usb/uvc/uvc_entity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_entity.c b/drivers/media/usb/uvc/uvc_entity.c
index ac386bb547e6..554063c07d7a 100644
--- a/drivers/media/usb/uvc/uvc_entity.c
+++ b/drivers/media/usb/uvc/uvc_entity.c
@@ -61,7 +61,7 @@ static int uvc_mc_create_links(struct uvc_video_chain *chain,
return 0;
}
-static struct v4l2_subdev_ops uvc_subdev_ops = {
+static const struct v4l2_subdev_ops uvc_subdev_ops = {
};
void uvc_mc_cleanup_entity(struct uvc_entity *entity)