aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-streams.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-12-14 19:05:36 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:39:08 -0500
commitf6b181ac3bda7aab227e9ee3148bc9b7f1889c57 (patch)
tree1d4c3d1e0f4b17d469af7c46141b45f41853c2d2 /drivers/media/video/cx18/cx18-streams.c
parentaafc77066f4cc8b6de4af1a7d643c9646e19bad9 (diff)
V4L/DVB (9893): cx18: Convert some list manipulations to emphasize entries not lists
Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-streams.c')
-rw-r--r--drivers/media/video/cx18/cx18-streams.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.c b/drivers/media/video/cx18/cx18-streams.c
index 8fc655d3ced9..600a5fcac3d0 100644
--- a/drivers/media/video/cx18/cx18-streams.c
+++ b/drivers/media/video/cx18/cx18-streams.c
@@ -442,7 +442,6 @@ int cx18_start_v4l2_encode_stream(struct cx18_stream *s)
442{ 442{
443 u32 data[MAX_MB_ARGUMENTS]; 443 u32 data[MAX_MB_ARGUMENTS];
444 struct cx18 *cx = s->cx; 444 struct cx18 *cx = s->cx;
445 struct list_head *p;
446 struct cx18_buffer *buf; 445 struct cx18_buffer *buf;
447 int ts = 0; 446 int ts = 0;
448 int captype = 0; 447 int captype = 0;
@@ -529,8 +528,7 @@ int cx18_start_v4l2_encode_stream(struct cx18_stream *s)
529 /* Init all the cpu_mdls for this stream */ 528 /* Init all the cpu_mdls for this stream */
530 cx18_flush_queues(s); 529 cx18_flush_queues(s);
531 mutex_lock(&s->qlock); 530 mutex_lock(&s->qlock);
532 list_for_each(p, &s->q_free.list) { 531 list_for_each_entry(buf, &s->q_free.list, list) {
533 buf = list_entry(p, struct cx18_buffer, list);
534 cx18_writel(cx, buf->dma_handle, 532 cx18_writel(cx, buf->dma_handle,
535 &cx->scb->cpu_mdl[buf->id].paddr); 533 &cx->scb->cpu_mdl[buf->id].paddr);
536 cx18_writel(cx, s->buf_size, &cx->scb->cpu_mdl[buf->id].length); 534 cx18_writel(cx, s->buf_size, &cx->scb->cpu_mdl[buf->id].length);