Skip to content

Commit

Permalink
media: pxa_camera: constify v4l2_clk_ops structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 20, 2017
1 parent 8728bdd commit 2c1630c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 2c1630c

Please sign in to comment.