aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-03-28 08:22:53 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:57:53 -0400
commit37111039c9521c751ce0597c129fe6d45ba72818 (patch)
tree00e6d6e75a4604a95d1062e6a2846196fd2054e8 /include/media
parentf4fce60e8b1559306fa1112287bc8765f6977de3 (diff)
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>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/videobuf-core.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/media/videobuf-core.h b/include/media/videobuf-core.h
index f73e297e3735..821a530f4957 100644
--- a/include/media/videobuf-core.h
+++ b/include/media/videobuf-core.h
@@ -134,16 +134,6 @@ struct videobuf_qtype_ops {
134 struct v4l2_framebuffer *fbuf); 134 struct v4l2_framebuffer *fbuf);
135 int (*sync) (struct videobuf_queue *q, 135 int (*sync) (struct videobuf_queue *q,
136 struct videobuf_buffer *buf); 136 struct videobuf_buffer *buf);
137 int (*video_copy_to_user)(struct videobuf_queue *q,
138 char __user *data,
139 size_t count,
140 int nonblocking);
141 int (*copy_stream) (struct videobuf_queue *q,
142 char __user *data,
143 size_t count,
144 size_t pos,
145 int vbihack,
146 int nonblocking);
147 int (*mmap_mapper) (struct videobuf_queue *q, 137 int (*mmap_mapper) (struct videobuf_queue *q,
148 struct vm_area_struct *vma); 138 struct vm_area_struct *vma);
149}; 139};