Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193024
b: refs/heads/master
c: 037c75e
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent d0e3a0d commit c7296f8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4cf4cac2979a828e7cd0a3cd02d7a5308a44a7f
refs/heads/master: 037c75eb14cd6adb837f81f0c2b2a52c31c91e69
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ EXPORT_SYMBOL_GPL(videobuf_iolock);
void *videobuf_queue_to_vmalloc(struct videobuf_queue *q,
struct videobuf_buffer *buf)
{
if (q->int_ops->vmalloc)
return q->int_ops->vmalloc(buf);
if (q->int_ops->vaddr)
return q->int_ops->vaddr(buf);
else
return NULL;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/videobuf-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static struct videobuf_buffer *__videobuf_alloc(size_t size)
return vb;
}

static void *__videobuf_to_vmalloc(struct videobuf_buffer *buf)
static void *__videobuf_to_vaddr(struct videobuf_buffer *buf)
{
struct videobuf_dma_contig_memory *mem = buf->priv;

Expand Down Expand Up @@ -414,7 +414,7 @@ static struct videobuf_qtype_ops qops = {
.mmap_mapper = __videobuf_mmap_mapper,
.video_copy_to_user = __videobuf_copy_to_user,
.copy_stream = __videobuf_copy_stream,
.vmalloc = __videobuf_to_vmalloc,
.vaddr = __videobuf_to_vaddr,
};

void videobuf_queue_dma_contig_init(struct videobuf_queue *q,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/videobuf-dma-sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static struct videobuf_buffer *__videobuf_alloc(size_t size)
return vb;
}

static void *__videobuf_to_vmalloc(struct videobuf_buffer *buf)
static void *__videobuf_to_vaddr(struct videobuf_buffer *buf)
{
struct videobuf_dma_sg_memory *mem = buf->priv;
BUG_ON(!mem);
Expand Down Expand Up @@ -700,7 +700,7 @@ static struct videobuf_qtype_ops sg_ops = {
.mmap_mapper = __videobuf_mmap_mapper,
.video_copy_to_user = __videobuf_copy_to_user,
.copy_stream = __videobuf_copy_stream,
.vmalloc = __videobuf_to_vmalloc,
.vaddr = __videobuf_to_vaddr,
};

void *videobuf_sg_alloc(size_t size)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/videobuf-vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static struct videobuf_qtype_ops qops = {
.mmap_mapper = __videobuf_mmap_mapper,
.video_copy_to_user = __videobuf_copy_to_user,
.copy_stream = __videobuf_copy_stream,
.vmalloc = videobuf_to_vmalloc,
.vaddr = videobuf_to_vmalloc,
};

void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/media/videobuf-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct videobuf_qtype_ops {
u32 magic;

struct videobuf_buffer *(*alloc)(size_t size);
void *(*vmalloc) (struct videobuf_buffer *buf);
void *(*vaddr) (struct videobuf_buffer *buf);
int (*iolock) (struct videobuf_queue *q,
struct videobuf_buffer *vb,
struct v4l2_framebuffer *fbuf);
Expand Down

0 comments on commit c7296f8

Please sign in to comment.