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/pci/saa7134 | |
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/pci/saa7134')
-rw-r--r-- | drivers/media/pci/saa7134/saa7134-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c index bac4386c64b9..135bfd8c28ad 100644 --- a/drivers/media/pci/saa7134/saa7134-video.c +++ b/drivers/media/pci/saa7134/saa7134-video.c | |||
@@ -2089,7 +2089,7 @@ static int saa7134_g_audio(struct file *file, void *priv, struct v4l2_audio *a) | |||
2089 | return 0; | 2089 | return 0; |
2090 | } | 2090 | } |
2091 | 2091 | ||
2092 | static int saa7134_s_audio(struct file *file, void *priv, struct v4l2_audio *a) | 2092 | static int saa7134_s_audio(struct file *file, void *priv, const struct v4l2_audio *a) |
2093 | { | 2093 | { |
2094 | return 0; | 2094 | return 0; |
2095 | } | 2095 | } |
@@ -2373,7 +2373,7 @@ static int radio_g_audio(struct file *file, void *priv, | |||
2373 | } | 2373 | } |
2374 | 2374 | ||
2375 | static int radio_s_audio(struct file *file, void *priv, | 2375 | static int radio_s_audio(struct file *file, void *priv, |
2376 | struct v4l2_audio *a) | 2376 | const struct v4l2_audio *a) |
2377 | { | 2377 | { |
2378 | return 0; | 2378 | return 0; |
2379 | } | 2379 | } |