]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5214185a1a0d8ec660ff7e8a0ba7a93dec8c32ee
tree00e6d6e75a4604a95d1062e6a2846196fd2054e8
parentd3dd9afd943b9d148421713c4d28dcec5e8e02fb
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