diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-11-02 10:48:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 06:07:06 -0500 |
commit | be773a176cbba68e9b2b6b669e5efe966844adba (patch) | |
tree | 80eef13b9846aa1a68f39b66385957f31b21fb4b /drivers | |
parent | 9729d6d282a6d7ce88e64c9119cecdf79edf4e88 (diff) | |
download | linux-be773a176cbba68e9b2b6b669e5efe966844adba.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/rockchip/rga/rga.c | 2 |
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, |