diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-30 05:04:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-02 14:11:34 -0500 |
commit | 069b747931f13eda289c1d59a09ecc8162281a76 (patch) | |
tree | 144b8ebf131eba4f3468d8d3f52bd192bc2e4f76 /drivers/media/video/saa5249.c | |
parent | 4ab9203b1b7e45f1beae7eb0c67d663a26257a69 (diff) |
V4L/DVB (10138): v4l2-ioctl: change to long return type to match unlocked_ioctl.
Since internal to v4l2 the ioctl prototype is the same regardless of it
being called through .ioctl or .unlocked_ioctl, we need to convert it all
to the long return type of unlocked_ioctl.
Thanks to Jean-Francois Moine for posting an initial patch for this and
thus bringing it to our attention.
Cc: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa5249.c')
-rw-r--r-- | drivers/media/video/saa5249.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c index e73bb738933c..e29765192469 100644 --- a/drivers/media/video/saa5249.c +++ b/drivers/media/video/saa5249.c | |||
@@ -190,7 +190,7 @@ static int i2c_getdata(struct saa5249_device *t, int count, u8 *buf) | |||
190 | * Standard character-device-driver functions | 190 | * Standard character-device-driver functions |
191 | */ | 191 | */ |
192 | 192 | ||
193 | static int do_saa5249_ioctl(struct file *file, unsigned int cmd, void *arg) | 193 | static long do_saa5249_ioctl(struct file *file, unsigned int cmd, void *arg) |
194 | { | 194 | { |
195 | static int virtual_mode = false; | 195 | static int virtual_mode = false; |
196 | struct saa5249_device *t = video_drvdata(file); | 196 | struct saa5249_device *t = video_drvdata(file); |
@@ -479,11 +479,11 @@ static inline unsigned int vtx_fix_command(unsigned int cmd) | |||
479 | * Handle the locking | 479 | * Handle the locking |
480 | */ | 480 | */ |
481 | 481 | ||
482 | static int saa5249_ioctl(struct file *file, | 482 | static long saa5249_ioctl(struct file *file, |
483 | unsigned int cmd, unsigned long arg) | 483 | unsigned int cmd, unsigned long arg) |
484 | { | 484 | { |
485 | struct saa5249_device *t = video_drvdata(file); | 485 | struct saa5249_device *t = video_drvdata(file); |
486 | int err; | 486 | long err; |
487 | 487 | ||
488 | cmd = vtx_fix_command(cmd); | 488 | cmd = vtx_fix_command(cmd); |
489 | mutex_lock(&t->lock); | 489 | mutex_lock(&t->lock); |