diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-05 04:10:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 10:02:25 -0400 |
commit | 4f996594ceaf6c3f9bc42b40c40b0f7f87b79c86 (patch) | |
tree | f2ba0120024627256917dc05a2d7c509ac056011 /drivers/staging | |
parent | 3f70e1f598a6be4277e71516a98457fd3bddfbd0 (diff) |
[media] v4l2: make vidioc_s_crop const
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_crop.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/go7007/go7007-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/go7007/go7007-v4l2.c b/drivers/staging/media/go7007/go7007-v4l2.c index f1dff3d09957..980371b02749 100644 --- a/drivers/staging/media/go7007/go7007-v4l2.c +++ b/drivers/staging/media/go7007/go7007-v4l2.c | |||
@@ -1372,7 +1372,7 @@ static int vidioc_g_crop(struct file *file, void *priv, struct v4l2_crop *crop) | |||
1372 | 1372 | ||
1373 | /* FIXME: vidioc_s_crop is not really implemented!!! | 1373 | /* FIXME: vidioc_s_crop is not really implemented!!! |
1374 | */ | 1374 | */ |
1375 | static int vidioc_s_crop(struct file *file, void *priv, struct v4l2_crop *crop) | 1375 | static int vidioc_s_crop(struct file *file, void *priv, const struct v4l2_crop *crop) |
1376 | { | 1376 | { |
1377 | if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1377 | if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
1378 | return -EINVAL; | 1378 | return -EINVAL; |