diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-07 05:02:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:41 -0400 |
commit | 8ac05ae3192ce8a71fc84e4a88772cce0c09173c (patch) | |
tree | 997f2d8bbedf857b33bf62d44b9cc4cd8c7a9f73 /drivers/media/video/ivtv/ivtv-queue.c | |
parent | d7493e518fa98d2c30c545c518df075903bae513 (diff) |
V4L/DVB (10488): ivtv: cleanup naming conventions
Use consistent naming for pci_dev, v4l2_device and video_device.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-queue.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-queue.c b/drivers/media/video/ivtv/ivtv-queue.c index 71bd13e22e2e..ff7b7deded4f 100644 --- a/drivers/media/video/ivtv/ivtv-queue.c +++ b/drivers/media/video/ivtv/ivtv-queue.c | |||
@@ -230,7 +230,7 @@ int ivtv_stream_alloc(struct ivtv_stream *s) | |||
230 | return -ENOMEM; | 230 | return -ENOMEM; |
231 | } | 231 | } |
232 | if (ivtv_might_use_dma(s)) { | 232 | if (ivtv_might_use_dma(s)) { |
233 | s->sg_handle = pci_map_single(itv->dev, s->sg_dma, sizeof(struct ivtv_sg_element), s->dma); | 233 | s->sg_handle = pci_map_single(itv->pdev, s->sg_dma, sizeof(struct ivtv_sg_element), s->dma); |
234 | ivtv_stream_sync_for_cpu(s); | 234 | ivtv_stream_sync_for_cpu(s); |
235 | } | 235 | } |
236 | 236 | ||
@@ -248,7 +248,7 @@ int ivtv_stream_alloc(struct ivtv_stream *s) | |||
248 | } | 248 | } |
249 | INIT_LIST_HEAD(&buf->list); | 249 | INIT_LIST_HEAD(&buf->list); |
250 | if (ivtv_might_use_dma(s)) { | 250 | if (ivtv_might_use_dma(s)) { |
251 | buf->dma_handle = pci_map_single(s->itv->dev, | 251 | buf->dma_handle = pci_map_single(s->itv->pdev, |
252 | buf->buf, s->buf_size + 256, s->dma); | 252 | buf->buf, s->buf_size + 256, s->dma); |
253 | ivtv_buf_sync_for_cpu(s, buf); | 253 | ivtv_buf_sync_for_cpu(s, buf); |
254 | } | 254 | } |
@@ -271,7 +271,7 @@ void ivtv_stream_free(struct ivtv_stream *s) | |||
271 | /* empty q_free */ | 271 | /* empty q_free */ |
272 | while ((buf = ivtv_dequeue(s, &s->q_free))) { | 272 | while ((buf = ivtv_dequeue(s, &s->q_free))) { |
273 | if (ivtv_might_use_dma(s)) | 273 | if (ivtv_might_use_dma(s)) |
274 | pci_unmap_single(s->itv->dev, buf->dma_handle, | 274 | pci_unmap_single(s->itv->pdev, buf->dma_handle, |
275 | s->buf_size + 256, s->dma); | 275 | s->buf_size + 256, s->dma); |
276 | kfree(buf->buf); | 276 | kfree(buf->buf); |
277 | kfree(buf); | 277 | kfree(buf); |
@@ -280,7 +280,7 @@ void ivtv_stream_free(struct ivtv_stream *s) | |||
280 | /* Free SG Array/Lists */ | 280 | /* Free SG Array/Lists */ |
281 | if (s->sg_dma != NULL) { | 281 | if (s->sg_dma != NULL) { |
282 | if (s->sg_handle != IVTV_DMA_UNMAPPED) { | 282 | if (s->sg_handle != IVTV_DMA_UNMAPPED) { |
283 | pci_unmap_single(s->itv->dev, s->sg_handle, | 283 | pci_unmap_single(s->itv->pdev, s->sg_handle, |
284 | sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE); | 284 | sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE); |
285 | s->sg_handle = IVTV_DMA_UNMAPPED; | 285 | s->sg_handle = IVTV_DMA_UNMAPPED; |
286 | } | 286 | } |