mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
f4fce60e8b
commit
37111039c9
5 changed files with 45 additions and 167 deletions
|
|
@ -134,16 +134,6 @@ struct videobuf_qtype_ops {
|
|||
struct v4l2_framebuffer *fbuf);
|
||||
int (*sync) (struct videobuf_queue *q,
|
||||
struct videobuf_buffer *buf);
|
||||
int (*video_copy_to_user)(struct videobuf_queue *q,
|
||||
char __user *data,
|
||||
size_t count,
|
||||
int nonblocking);
|
||||
int (*copy_stream) (struct videobuf_queue *q,
|
||||
char __user *data,
|
||||
size_t count,
|
||||
size_t pos,
|
||||
int vbihack,
|
||||
int nonblocking);
|
||||
int (*mmap_mapper) (struct videobuf_queue *q,
|
||||
struct vm_area_struct *vma);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue