media: rockchip/rga: constify video_device structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 2 Nov 2018 14:48:15 +0000 (10:48 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:07:06 +0000 (06:07 -0500)
The video_device structure is only copied into another structure, so
it can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rockchip/rga/rga.c

index dc63c44929de3dca5dbabaf94300813a8db7b1a9..5c653287185fdf2a8835ed8f98f61535ba173453 100644 (file)
@@ -700,7 +700,7 @@ static const struct v4l2_ioctl_ops rga_ioctl_ops = {
        .vidioc_s_selection = vidioc_s_selection,
 };
 
-static struct video_device rga_videodev = {
+static const struct video_device rga_videodev = {
        .name = "rockchip-rga",
        .fops = &rga_fops,
        .ioctl_ops = &rga_ioctl_ops,