aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-11-02 10:48:15 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 06:07:06 -0500
commitbe773a176cbba68e9b2b6b669e5efe966844adba (patch)
tree80eef13b9846aa1a68f39b66385957f31b21fb4b
parentmedia: vivid: set min width/height to a value > 0 (diff)
downloadlinux-dev-be773a176cbba68e9b2b6b669e5efe966844adba.tar.xz
linux-dev-be773a176cbba68e9b2b6b669e5efe966844adba.zip
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 <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/platform/rockchip/rga/rga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c
index dc63c44929de..5c653287185f 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,