aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-05 06:02:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:08 -0400
commite276f7b5f9c41536f22bec1d8205e6b201300743 (patch)
treed6690a48478bc33d8058c6437f565a9d34ce4d0a /drivers/media/video
parent5a771cb186dfa1f663ea15cdff3e32e04a8427e3 (diff)
V4L/DVB (10848): zoran: Change first argument to zoran_v4l2_buffer_status
It was a struct file *, but all that function wants is the struct zoran_fh from the file's private data. Since every caller already has this, just pass the zoran_fh instead. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/zoran/zoran_driver.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c
index 5dcd56c9b947..2dd8d90aedf9 100644
--- a/drivers/media/video/zoran/zoran_driver.c
+++ b/drivers/media/video/zoran/zoran_driver.c
@@ -1377,11 +1377,10 @@ setup_overlay (struct file *file,
1377 1377
1378 /* get the status of a buffer in the clients buffer queue */ 1378 /* get the status of a buffer in the clients buffer queue */
1379static int 1379static int
1380zoran_v4l2_buffer_status (struct file *file, 1380zoran_v4l2_buffer_status (struct zoran_fh *fh,
1381 struct v4l2_buffer *buf, 1381 struct v4l2_buffer *buf,
1382 int num) 1382 int num)
1383{ 1383{
1384 struct zoran_fh *fh = file->private_data;
1385 struct zoran *zr = fh->zr; 1384 struct zoran *zr = fh->zr;
1386 1385
1387 buf->flags = V4L2_BUF_FLAG_MAPPED; 1386 buf->flags = V4L2_BUF_FLAG_MAPPED;
@@ -2501,7 +2500,7 @@ static int zoran_querybuf(struct file *file, void *__fh, struct v4l2_buffer *buf
2501 int res; 2500 int res;
2502 2501
2503 mutex_lock(&zr->resource_lock); 2502 mutex_lock(&zr->resource_lock);
2504 res = zoran_v4l2_buffer_status(file, buf, buf->index); 2503 res = zoran_v4l2_buffer_status(fh, buf, buf->index);
2505 mutex_unlock(&zr->resource_lock); 2504 mutex_unlock(&zr->resource_lock);
2506 2505
2507 return res; 2506 return res;
@@ -2602,7 +2601,7 @@ static int zoran_dqbuf(struct file *file, void *__fh, struct v4l2_buffer *buf)
2602 if (res) 2601 if (res)
2603 goto dqbuf_unlock_and_return; 2602 goto dqbuf_unlock_and_return;
2604 zr->v4l_sync_tail++; 2603 zr->v4l_sync_tail++;
2605 res = zoran_v4l2_buffer_status(file, buf, num); 2604 res = zoran_v4l2_buffer_status(fh, buf, num);
2606 break; 2605 break;
2607 2606
2608 case ZORAN_MAP_MODE_JPG_REC: 2607 case ZORAN_MAP_MODE_JPG_REC:
@@ -2633,7 +2632,7 @@ static int zoran_dqbuf(struct file *file, void *__fh, struct v4l2_buffer *buf)
2633 res = jpg_sync(file, &bs); 2632 res = jpg_sync(file, &bs);
2634 if (res) 2633 if (res)
2635 goto dqbuf_unlock_and_return; 2634 goto dqbuf_unlock_and_return;
2636 res = zoran_v4l2_buffer_status(file, buf, bs.frame); 2635 res = zoran_v4l2_buffer_status(fh, buf, bs.frame);
2637 break; 2636 break;
2638 } 2637 }
2639 2638