diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-04 10:59:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 09:50:12 -0400 |
commit | 0e8025b9f6011a6bd69d01080d584bc95a89d02e (patch) | |
tree | 228712a97a37d887d1eca9c17f83ada102d53291 /drivers/media/usb/em28xx/em28xx-video.c | |
parent | 85f5fe3962ca6780e5368feffe32f3b15e953e1f (diff) |
[media] v4l2: make vidioc_s_audio const
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audio.
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/media/usb/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 78d6ebd712b9..1e553d357380 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c | |||
@@ -1352,7 +1352,7 @@ static int vidioc_g_audio(struct file *file, void *priv, struct v4l2_audio *a) | |||
1352 | return 0; | 1352 | return 0; |
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | static int vidioc_s_audio(struct file *file, void *priv, struct v4l2_audio *a) | 1355 | static int vidioc_s_audio(struct file *file, void *priv, const struct v4l2_audio *a) |
1356 | { | 1356 | { |
1357 | struct em28xx_fh *fh = priv; | 1357 | struct em28xx_fh *fh = priv; |
1358 | struct em28xx *dev = fh->dev; | 1358 | struct em28xx *dev = fh->dev; |
@@ -2087,7 +2087,7 @@ static int radio_s_tuner(struct file *file, void *priv, | |||
2087 | } | 2087 | } |
2088 | 2088 | ||
2089 | static int radio_s_audio(struct file *file, void *fh, | 2089 | static int radio_s_audio(struct file *file, void *fh, |
2090 | struct v4l2_audio *a) | 2090 | const struct v4l2_audio *a) |
2091 | { | 2091 | { |
2092 | return 0; | 2092 | return 0; |
2093 | } | 2093 | } |