aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-vbi.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-10 04:37:40 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-10 12:34:48 -0400
commit8bb629e22f2547736c24fe4738673e20cc06d469 (patch)
treefeb7d8db7ce8d35f3f278dddce48d4ee0cd12d29 /drivers/media/video/cx88/cx88-vbi.c
parent7948261942ffdb35e274b8e1a0889601f45d4603 (diff)
V4L/DVB (6312): cx88: Replace list_for_each+list_entry with list_for_each_entry
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88-vbi.c')
-rw-r--r--drivers/media/video/cx88/cx88-vbi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-vbi.c b/drivers/media/video/cx88/cx88-vbi.c
index aa40505c4b3a..babb08556406 100644
--- a/drivers/media/video/cx88/cx88-vbi.c
+++ b/drivers/media/video/cx88/cx88-vbi.c
@@ -99,7 +99,6 @@ int cx8800_restart_vbi_queue(struct cx8800_dev *dev,
99 struct cx88_dmaqueue *q) 99 struct cx88_dmaqueue *q)
100{ 100{
101 struct cx88_buffer *buf; 101 struct cx88_buffer *buf;
102 struct list_head *item;
103 102
104 if (list_empty(&q->active)) 103 if (list_empty(&q->active))
105 return 0; 104 return 0;
@@ -108,10 +107,8 @@ int cx8800_restart_vbi_queue(struct cx8800_dev *dev,
108 dprintk(2,"restart_queue [%p/%d]: restart dma\n", 107 dprintk(2,"restart_queue [%p/%d]: restart dma\n",
109 buf, buf->vb.i); 108 buf, buf->vb.i);
110 cx8800_start_vbi_dma(dev, q, buf); 109 cx8800_start_vbi_dma(dev, q, buf);
111 list_for_each(item,&q->active) { 110 list_for_each_entry(buf, &q->active, vb.queue)
112 buf = list_entry(item, struct cx88_buffer, vb.queue);
113 buf->count = q->count++; 111 buf->count = q->count++;
114 }
115 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 112 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
116 return 0; 113 return 0;
117} 114}