diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-14 01:58:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:05:31 -0400 |
commit | 2c1630c66b3bcce2e3da530f9a692e548678203a (patch) | |
tree | 4bb7c1a7e1453c23c479bc7e0d0d4a9b0abfc40a /drivers/media/platform/pxa_camera.c | |
parent | 8728bddf4bf591517bc1c36854ce0fcb94392fa4 (diff) | |
download | op-kernel-dev-2c1630c66b3bcce2e3da530f9a692e548678203a.zip op-kernel-dev-2c1630c66b3bcce2e3da530f9a692e548678203a.tar.gz |
media: pxa_camera: constify v4l2_clk_ops structure
This v4l2_clk_ops structure is only passed as the first argument of
v4l2_clk_register, which is const, so the v4l2_clk_ops structure can
also 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@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/pxa_camera.c')
-rw-r--r-- | drivers/media/platform/pxa_camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index 0d4af6d..4a800a4 100644 --- a/drivers/media/platform/pxa_camera.c +++ b/drivers/media/platform/pxa_camera.c @@ -2100,7 +2100,7 @@ static const struct v4l2_ioctl_ops pxa_camera_ioctl_ops = { .vidioc_unsubscribe_event = v4l2_event_unsubscribe, }; -static struct v4l2_clk_ops pxa_camera_mclk_ops = { +static const struct v4l2_clk_ops pxa_camera_mclk_ops = { }; static const struct video_device pxa_camera_videodev_template = { |