aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dma-sg.c
diff options
context:
space:
mode:
authorPawel Osciak <p.osciak@samsung.com>2010-05-11 09:36:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 14:20:47 -0400
commit33c38283f03d8ea0358229fc03c1beebe67aed0e (patch)
tree77cbda3006627840c754c56d02489c23a6ab348c /drivers/media/video/videobuf-dma-sg.c
parentc6cfe05532cf6e9858d60ee699c51b906842489d (diff)
V4L/DVB: videobuf: rename videobuf_alloc to videobuf_alloc_vb
These functions allocate videobuf_buffer structures only. Renaming in order to prevent confusion with functions allocating actual video buffer memory. Rename the functions in videobuf-core.h videobuf-dma-sg.c as well. Signed-off-by: Pawel Osciak <p.osciak@samsung.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-dma-sg.c')
-rw-r--r--drivers/media/video/videobuf-dma-sg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index 8359e6badd36..a9b109178578 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -428,7 +428,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
428 struct videobuf_dma_sg_memory 428 struct videobuf_dma_sg_memory
429 */ 429 */
430 430
431static struct videobuf_buffer *__videobuf_alloc(size_t size) 431static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
432{ 432{
433 struct videobuf_dma_sg_memory *mem; 433 struct videobuf_dma_sg_memory *mem;
434 struct videobuf_buffer *vb; 434 struct videobuf_buffer *vb;
@@ -638,7 +638,7 @@ done:
638static struct videobuf_qtype_ops sg_ops = { 638static struct videobuf_qtype_ops sg_ops = {
639 .magic = MAGIC_QTYPE_OPS, 639 .magic = MAGIC_QTYPE_OPS,
640 640
641 .alloc = __videobuf_alloc, 641 .alloc_vb = __videobuf_alloc_vb,
642 .iolock = __videobuf_iolock, 642 .iolock = __videobuf_iolock,
643 .sync = __videobuf_sync, 643 .sync = __videobuf_sync,
644 .mmap_mapper = __videobuf_mmap_mapper, 644 .mmap_mapper = __videobuf_mmap_mapper,
@@ -654,7 +654,7 @@ void *videobuf_sg_alloc(size_t size)
654 654
655 q.msize = size; 655 q.msize = size;
656 656
657 return videobuf_alloc(&q); 657 return videobuf_alloc_vb(&q);
658} 658}
659EXPORT_SYMBOL_GPL(videobuf_sg_alloc); 659EXPORT_SYMBOL_GPL(videobuf_sg_alloc);
660 660