From: Julia Lawall Date: Fri, 2 Nov 2018 14:48:15 +0000 (-0400) Subject: media: rockchip/rga: constify video_device structure X-Git-Tag: v5.0-rc1~182^2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be773a176cbba68e9b2b6b669e5efe966844adba;p=thirdparty%2Fkernel%2Flinux.git media: rockchip/rga: constify video_device structure 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index dc63c44929de3..5c653287185fd 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -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,