diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-03-28 07:18:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:57:52 -0400 |
commit | 037c75eb14cd6adb837f81f0c2b2a52c31c91e69 (patch) | |
tree | 79c54264c79256262f2d0079575ddcfcbb49f5c5 /drivers | |
parent | a4cf4cac2979a828e7cd0a3cd02d7a5308a44a7f (diff) |
V4L/DVB: v4l videobuf: rename .vmalloc to .vaddr
Rename the .vmalloc op in struct videobuf_qtype_ops to .vaddr. This op returns
the virtual kernel address of a buffer. vaddr is a lot less confusing than
vmalloc since this callback does do any allocations.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/videobuf-core.c | 4 | ||||
-rw-r--r-- | drivers/media/video/videobuf-dma-contig.c | 4 | ||||
-rw-r--r-- | drivers/media/video/videobuf-dma-sg.c | 4 | ||||
-rw-r--r-- | drivers/media/video/videobuf-vmalloc.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index 7b69f6b00a3d..26241a833894 100644 --- a/drivers/media/video/videobuf-core.c +++ b/drivers/media/video/videobuf-core.c | |||
@@ -108,8 +108,8 @@ EXPORT_SYMBOL_GPL(videobuf_iolock); | |||
108 | void *videobuf_queue_to_vmalloc(struct videobuf_queue *q, | 108 | void *videobuf_queue_to_vmalloc(struct videobuf_queue *q, |
109 | struct videobuf_buffer *buf) | 109 | struct videobuf_buffer *buf) |
110 | { | 110 | { |
111 | if (q->int_ops->vmalloc) | 111 | if (q->int_ops->vaddr) |
112 | return q->int_ops->vmalloc(buf); | 112 | return q->int_ops->vaddr(buf); |
113 | else | 113 | else |
114 | return NULL; | 114 | return NULL; |
115 | } | 115 | } |
diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index 76e158feca61..7226ca47cbf5 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c | |||
@@ -204,7 +204,7 @@ static struct videobuf_buffer *__videobuf_alloc(size_t size) | |||
204 | return vb; | 204 | return vb; |
205 | } | 205 | } |
206 | 206 | ||
207 | static void *__videobuf_to_vmalloc(struct videobuf_buffer *buf) | 207 | static void *__videobuf_to_vaddr(struct videobuf_buffer *buf) |
208 | { | 208 | { |
209 | struct videobuf_dma_contig_memory *mem = buf->priv; | 209 | struct videobuf_dma_contig_memory *mem = buf->priv; |
210 | 210 | ||
@@ -414,7 +414,7 @@ static struct videobuf_qtype_ops qops = { | |||
414 | .mmap_mapper = __videobuf_mmap_mapper, | 414 | .mmap_mapper = __videobuf_mmap_mapper, |
415 | .video_copy_to_user = __videobuf_copy_to_user, | 415 | .video_copy_to_user = __videobuf_copy_to_user, |
416 | .copy_stream = __videobuf_copy_stream, | 416 | .copy_stream = __videobuf_copy_stream, |
417 | .vmalloc = __videobuf_to_vmalloc, | 417 | .vaddr = __videobuf_to_vaddr, |
418 | }; | 418 | }; |
419 | 419 | ||
420 | void videobuf_queue_dma_contig_init(struct videobuf_queue *q, | 420 | void videobuf_queue_dma_contig_init(struct videobuf_queue *q, |
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c index 014eb63c0960..43e78ee24a10 100644 --- a/drivers/media/video/videobuf-dma-sg.c +++ b/drivers/media/video/videobuf-dma-sg.c | |||
@@ -460,7 +460,7 @@ static struct videobuf_buffer *__videobuf_alloc(size_t size) | |||
460 | return vb; | 460 | return vb; |
461 | } | 461 | } |
462 | 462 | ||
463 | static void *__videobuf_to_vmalloc(struct videobuf_buffer *buf) | 463 | static void *__videobuf_to_vaddr(struct videobuf_buffer *buf) |
464 | { | 464 | { |
465 | struct videobuf_dma_sg_memory *mem = buf->priv; | 465 | struct videobuf_dma_sg_memory *mem = buf->priv; |
466 | BUG_ON(!mem); | 466 | BUG_ON(!mem); |
@@ -700,7 +700,7 @@ static struct videobuf_qtype_ops sg_ops = { | |||
700 | .mmap_mapper = __videobuf_mmap_mapper, | 700 | .mmap_mapper = __videobuf_mmap_mapper, |
701 | .video_copy_to_user = __videobuf_copy_to_user, | 701 | .video_copy_to_user = __videobuf_copy_to_user, |
702 | .copy_stream = __videobuf_copy_stream, | 702 | .copy_stream = __videobuf_copy_stream, |
703 | .vmalloc = __videobuf_to_vmalloc, | 703 | .vaddr = __videobuf_to_vaddr, |
704 | }; | 704 | }; |
705 | 705 | ||
706 | void *videobuf_sg_alloc(size_t size) | 706 | void *videobuf_sg_alloc(size_t size) |
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index 000a60fc456e..6db412abeacd 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c | |||
@@ -373,7 +373,7 @@ static struct videobuf_qtype_ops qops = { | |||
373 | .mmap_mapper = __videobuf_mmap_mapper, | 373 | .mmap_mapper = __videobuf_mmap_mapper, |
374 | .video_copy_to_user = __videobuf_copy_to_user, | 374 | .video_copy_to_user = __videobuf_copy_to_user, |
375 | .copy_stream = __videobuf_copy_stream, | 375 | .copy_stream = __videobuf_copy_stream, |
376 | .vmalloc = videobuf_to_vmalloc, | 376 | .vaddr = videobuf_to_vmalloc, |
377 | }; | 377 | }; |
378 | 378 | ||
379 | void videobuf_queue_vmalloc_init(struct videobuf_queue *q, | 379 | void videobuf_queue_vmalloc_init(struct videobuf_queue *q, |