• Gerd Knorr's avatar
    [PATCH] v4l: avoid using struct file ptrs in video-buf · 3c822205
    Gerd Knorr authored
    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: default avatarGerd Knorr <kraxel@bytesex.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3c822205
video-buf.h 8.42 KB