]> git.hungrycats.org Git - linux/commit
[PATCH] v4l: avoid using struct file ptrs in video-buf
authorGerd Knorr <kraxel@bytesex.org>
Wed, 20 Oct 2004 01:17:42 +0000 (18:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:17:42 +0000 (18:17 -0700)
commit3c822205812de2f9b9bfd17853f1b31f0693d3f8
tree6d30387267c8b87d095b6b47b99d40134e7b5a9c
parentae7d4c86425d6eef7b362b004329d0f0cf65e722
[PATCH] v4l: avoid using struct file ptrs in video-buf

This patch makes the video-buf helper module pass through a void pointer
instead of a struct file pointer, that makes the code also usable when no
file pointer is available.  This is needed for when using the video-buf
infrastructure to manage DMA buffers for DVB cards.

The file pointer was used by the videobuf_queue_ops callbacks to get the
drivers private data via file->private_data, now a pointer to the drivers's
private data can be passed directly.

Adaptions of the drivers follow with separate patches.

Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/video-buf.c
include/media/video-buf.h