[media] uvcvideo: Move fields from uvc_buffer::buf to uvc_buffer
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 24 Oct 2011 14:49:19 +0000 (11:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 13:12:05 +0000 (11:12 -0200)
commit3d95e932573c316ad56b8e2f283e26de0b9c891c
treead5fd2e33f2fe21c67d5b5bc367a8597591f7926
parent4be9c8fb58e48cd0110bd9504b0af1e18fa54467
[media] uvcvideo: Move fields from uvc_buffer::buf to uvc_buffer

Add mem, length and bytesused fields to the uvc_buffer structure and use
them instead of accessing the uvc_buffer::buf m.offset, length and
bytesused fields directly. This prepares the driver to the conversion to
videobuf2.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_isight.c
drivers/media/video/uvc/uvc_queue.c
drivers/media/video/uvc/uvc_video.c
drivers/media/video/uvc/uvcvideo.h