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-udma.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-udma.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-udma.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/ivtv/ivtv-udma.c b/drivers/media/video/ivtv/ivtv-udma.c index 460db03b0ba0..d07ad6c39024 100644 --- a/drivers/media/video/ivtv/ivtv-udma.c +++ b/drivers/media/video/ivtv/ivtv-udma.c | |||
@@ -93,7 +93,7 @@ void ivtv_udma_alloc(struct ivtv *itv) | |||
93 | { | 93 | { |
94 | if (itv->udma.SG_handle == 0) { | 94 | if (itv->udma.SG_handle == 0) { |
95 | /* Map DMA Page Array Buffer */ | 95 | /* Map DMA Page Array Buffer */ |
96 | itv->udma.SG_handle = pci_map_single(itv->dev, itv->udma.SGarray, | 96 | itv->udma.SG_handle = pci_map_single(itv->pdev, itv->udma.SGarray, |
97 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); | 97 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); |
98 | ivtv_udma_sync_for_cpu(itv); | 98 | ivtv_udma_sync_for_cpu(itv); |
99 | } | 99 | } |
@@ -147,7 +147,7 @@ int ivtv_udma_setup(struct ivtv *itv, unsigned long ivtv_dest_addr, | |||
147 | } | 147 | } |
148 | 148 | ||
149 | /* Map SG List */ | 149 | /* Map SG List */ |
150 | dma->SG_length = pci_map_sg(itv->dev, dma->SGlist, dma->page_count, PCI_DMA_TODEVICE); | 150 | dma->SG_length = pci_map_sg(itv->pdev, dma->SGlist, dma->page_count, PCI_DMA_TODEVICE); |
151 | 151 | ||
152 | /* Fill SG Array with new values */ | 152 | /* Fill SG Array with new values */ |
153 | ivtv_udma_fill_sg_array (dma, ivtv_dest_addr, 0, -1); | 153 | ivtv_udma_fill_sg_array (dma, ivtv_dest_addr, 0, -1); |
@@ -172,7 +172,7 @@ void ivtv_udma_unmap(struct ivtv *itv) | |||
172 | 172 | ||
173 | /* Unmap Scatterlist */ | 173 | /* Unmap Scatterlist */ |
174 | if (dma->SG_length) { | 174 | if (dma->SG_length) { |
175 | pci_unmap_sg(itv->dev, dma->SGlist, dma->page_count, PCI_DMA_TODEVICE); | 175 | pci_unmap_sg(itv->pdev, dma->SGlist, dma->page_count, PCI_DMA_TODEVICE); |
176 | dma->SG_length = 0; | 176 | dma->SG_length = 0; |
177 | } | 177 | } |
178 | /* sync DMA */ | 178 | /* sync DMA */ |
@@ -191,13 +191,13 @@ void ivtv_udma_free(struct ivtv *itv) | |||
191 | 191 | ||
192 | /* Unmap SG Array */ | 192 | /* Unmap SG Array */ |
193 | if (itv->udma.SG_handle) { | 193 | if (itv->udma.SG_handle) { |
194 | pci_unmap_single(itv->dev, itv->udma.SG_handle, | 194 | pci_unmap_single(itv->pdev, itv->udma.SG_handle, |
195 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); | 195 | sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); |
196 | } | 196 | } |
197 | 197 | ||
198 | /* Unmap Scatterlist */ | 198 | /* Unmap Scatterlist */ |
199 | if (itv->udma.SG_length) { | 199 | if (itv->udma.SG_length) { |
200 | pci_unmap_sg(itv->dev, itv->udma.SGlist, itv->udma.page_count, PCI_DMA_TODEVICE); | 200 | pci_unmap_sg(itv->pdev, itv->udma.SGlist, itv->udma.page_count, PCI_DMA_TODEVICE); |
201 | } | 201 | } |
202 | 202 | ||
203 | for (i = 0; i < IVTV_DMA_SG_OSD_ENT; i++) { | 203 | for (i = 0; i < IVTV_DMA_SG_OSD_ENT; i++) { |