aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-queue.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-01-10 19:54:39 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:25 -0400
commit3d05913d894a460b7dc8e5d93415fde21b986411 (patch)
tree04a2216afdbbf27230dd364107d5d1dcb7f13057 /drivers/media/video/cx18/cx18-queue.c
parente0f28b6a69b73ebf610f4f9759999bcdabdcda8e (diff)
V4L/DVB (10280): cx18: Rename structure members: dev to pci_dev and v4l2dev to video_dev
Renamed structure member name to be more specific to type in anticipation of updating to the v4l2_device/v4l2_subdev framework. Too many objects named "dev" and /v4l2_\{0,1\}dev/ would be to confusing. 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-queue.c')
-rw-r--r--drivers/media/video/cx18/cx18-queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-queue.c b/drivers/media/video/cx18/cx18-queue.c
index 8d9441e88c4e..3046b8e74345 100644
--- a/drivers/media/video/cx18/cx18-queue.c
+++ b/drivers/media/video/cx18/cx18-queue.c
@@ -204,7 +204,7 @@ int cx18_stream_alloc(struct cx18_stream *s)
204 } 204 }
205 buf->id = cx->buffer_id++; 205 buf->id = cx->buffer_id++;
206 INIT_LIST_HEAD(&buf->list); 206 INIT_LIST_HEAD(&buf->list);
207 buf->dma_handle = pci_map_single(s->cx->dev, 207 buf->dma_handle = pci_map_single(s->cx->pci_dev,
208 buf->buf, s->buf_size, s->dma); 208 buf->buf, s->buf_size, s->dma);
209 cx18_buf_sync_for_cpu(s, buf); 209 cx18_buf_sync_for_cpu(s, buf);
210 cx18_enqueue(s, buf, &s->q_free); 210 cx18_enqueue(s, buf, &s->q_free);
@@ -227,7 +227,7 @@ void cx18_stream_free(struct cx18_stream *s)
227 227
228 /* empty q_free */ 228 /* empty q_free */
229 while ((buf = cx18_dequeue(s, &s->q_free))) { 229 while ((buf = cx18_dequeue(s, &s->q_free))) {
230 pci_unmap_single(s->cx->dev, buf->dma_handle, 230 pci_unmap_single(s->cx->pci_dev, buf->dma_handle,
231 s->buf_size, s->dma); 231 s->buf_size, s->dma);
232 kfree(buf->buf); 232 kfree(buf->buf);
233 kfree(buf); 233 kfree(buf);