aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-vmalloc.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-vmalloc.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-vmalloc.c')
-rw-r--r--drivers/media/video/videobuf-vmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index 583728f4c221..cf5be6bfd745 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -135,7 +135,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
135 struct videobuf_dma_sg_memory 135 struct videobuf_dma_sg_memory
136 */ 136 */
137 137
138static struct videobuf_buffer *__videobuf_alloc(size_t size) 138static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
139{ 139{
140 struct videobuf_vmalloc_memory *mem; 140 struct videobuf_vmalloc_memory *mem;
141 struct videobuf_buffer *vb; 141 struct videobuf_buffer *vb;
@@ -293,7 +293,7 @@ error:
293static struct videobuf_qtype_ops qops = { 293static struct videobuf_qtype_ops qops = {
294 .magic = MAGIC_QTYPE_OPS, 294 .magic = MAGIC_QTYPE_OPS,
295 295
296 .alloc = __videobuf_alloc, 296 .alloc_vb = __videobuf_alloc_vb,
297 .iolock = __videobuf_iolock, 297 .iolock = __videobuf_iolock,
298 .mmap_mapper = __videobuf_mmap_mapper, 298 .mmap_mapper = __videobuf_mmap_mapper,
299 .vaddr = videobuf_to_vmalloc, 299 .vaddr = videobuf_to_vmalloc,