diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-03-28 07:09:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:57:51 -0400 |
commit | a4cf4cac2979a828e7cd0a3cd02d7a5308a44a7f (patch) | |
tree | b94943cd797a075ad96f9bb9310bae160aa67e39 /drivers/media/video/videobuf-dma-sg.c | |
parent | 63e424856b4ab0652c58f75a2d2ecb9c1f95db27 (diff) |
V4L/DVB: v4l videobuf: use struct videobuf_buffer * instead of void * for videobuf_alloc
videobuf_alloc() returned a void *. Change to struct videobuf_buffer *
to get better type checking.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-dma-sg.c')
-rw-r--r-- | drivers/media/video/videobuf-dma-sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c index 7ff275e30092..014eb63c0960 100644 --- a/drivers/media/video/videobuf-dma-sg.c +++ b/drivers/media/video/videobuf-dma-sg.c | |||
@@ -439,7 +439,7 @@ static const struct vm_operations_struct videobuf_vm_ops = { | |||
439 | struct videobuf_dma_sg_memory | 439 | struct videobuf_dma_sg_memory |
440 | */ | 440 | */ |
441 | 441 | ||
442 | static void *__videobuf_alloc(size_t size) | 442 | static struct videobuf_buffer *__videobuf_alloc(size_t size) |
443 | { | 443 | { |
444 | struct videobuf_dma_sg_memory *mem; | 444 | struct videobuf_dma_sg_memory *mem; |
445 | struct videobuf_buffer *vb; | 445 | struct videobuf_buffer *vb; |