V4L/DVB: v4l videobuf: move video_copy_to_user and copy_stream to core
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 28 Mar 2010 12:22:53 +0000 (09:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:53 +0000 (12:57 -0300)
commit37111039c9521c751ce0597c129fe6d45ba72818
tree00e6d6e75a4604a95d1062e6a2846196fd2054e8
parentf4fce60e8b1559306fa1112287bc8765f6977de3
V4L/DVB: v4l videobuf: move video_copy_to_user and copy_stream to core

The video_copy_to_user and copy_stream ops are almost identical for all
videobuf memtype variants. All that is needed is to use the new vaddr
op and these functions can be moved into the core, ensuring we have just
one single implementation instead of three.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c
drivers/media/video/videobuf-dma-contig.c
drivers/media/video/videobuf-dma-sg.c
drivers/media/video/videobuf-vmalloc.c
include/media/videobuf-core.h