Commit 54220790 authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9d15cd95
...@@ -61,7 +61,7 @@ static int uvc_mc_create_links(struct uvc_video_chain *chain, ...@@ -61,7 +61,7 @@ static int uvc_mc_create_links(struct uvc_video_chain *chain,
return 0; 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) void uvc_mc_cleanup_entity(struct uvc_entity *entity)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment