[media] videobuf2-dma-contig: make cookie() return a pointer to dma_addr_t
authorPawel Osciak <pawel@osciak.com>
Mon, 14 Mar 2011 13:38:24 +0000 (10:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 22:41:58 +0000 (19:41 -0300)
commit472af2b05bdefcaee7e754e22cbf131110017ad6
treee3fe18e25905bb069518e00b5a4d2f75a58f42f9
parentd6db5bfe7fd6d4334a1460923ba8175f1a0ece2d
[media] videobuf2-dma-contig: make cookie() return a pointer to dma_addr_t

dma_addr_t may not fit into void* on some architectures. To be safe, make
vb2_dma_contig_cookie() return a pointer to dma_addr_t and dereference it
in vb2_dma_contig_plane_paddr() back to dma_addr_t.

Signed-off-by: Pawel Osciak <pawel@osciak.com>
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-dma-contig.c
include/media/videobuf2-dma-contig.h