Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242189
b: refs/heads/master
c: 472af2b
h: refs/heads/master
i:
  242187: e488f71
v: v3
  • Loading branch information
Pawel Osciak authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent b625efa commit 52aad87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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: d6db5bfe7fd6d4334a1460923ba8175f1a0ece2d
refs/heads/master: 472af2b05bdefcaee7e754e22cbf131110017ad6
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/videobuf2-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void *vb2_dma_contig_cookie(void *buf_priv)
{
struct vb2_dc_buf *buf = buf_priv;

return (void *)buf->paddr;
return &buf->paddr;
}

static void *vb2_dma_contig_vaddr(void *buf_priv)
Expand Down
9 changes: 6 additions & 3 deletions trunk/include/media/videobuf2-dma-contig.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
#define _MEDIA_VIDEOBUF2_DMA_COHERENT_H

#include <media/videobuf2-core.h>
#include <linux/dma-mapping.h>

static inline unsigned long vb2_dma_contig_plane_paddr(
struct vb2_buffer *vb, unsigned int plane_no)
static inline dma_addr_t
vb2_dma_contig_plane_paddr(struct vb2_buffer *vb, unsigned int plane_no)
{
return (unsigned long)vb2_plane_cookie(vb, plane_no);
dma_addr_t *paddr = vb2_plane_cookie(vb, plane_no);

return *paddr;
}

void *vb2_dma_contig_init_ctx(struct device *dev);
Expand Down

0 comments on commit 52aad87

Please sign in to comment.