summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/omap3isp/ispqueue.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-03-07 21:29:31 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 11:19:08 -0300
commit1e345d4ab4a873a0c96ecbdfdd2f9a36998bba6f (patch)
treec771c7d67dab6be773fbbf7ebac78dbd289e9a46 /drivers/media/platform/omap3isp/ispqueue.h
parent2a0a5472af5caa0d0df334abb9975dc496f045da (diff)
downloadlinux-stable-1e345d4ab4a873a0c96ecbdfdd2f9a36998bba6f.tar.gz
linux-stable-1e345d4ab4a873a0c96ecbdfdd2f9a36998bba6f.tar.bz2
linux-stable-1e345d4ab4a873a0c96ecbdfdd2f9a36998bba6f.zip
[media] omap3isp: queue: Don't build scatterlist for kernel buffer
The scatterlist is not needed for those buffers, don't build it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/ispqueue.h')
-rw-r--r--drivers/media/platform/omap3isp/ispqueue.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/omap3isp/ispqueue.h b/drivers/media/platform/omap3isp/ispqueue.h
index ae4acb9ab5f9..27189bb5a690 100644
--- a/drivers/media/platform/omap3isp/ispqueue.h
+++ b/drivers/media/platform/omap3isp/ispqueue.h
@@ -70,8 +70,8 @@ enum isp_video_buffer_state {
* @vaddr: Memory virtual address (for kernel buffers)
* @vm_flags: Buffer VMA flags (for userspace buffers)
* @npages: Number of pages (for userspace buffers)
+ * @sgt: Scatter gather table (for userspace buffers)
* @pages: Pages table (for userspace non-VM_PFNMAP buffers)
- * @sgt: Scatter gather table
* @vbuf: V4L2 buffer
* @irqlist: List head for insertion into IRQ queue
* @state: Current buffer state
@@ -90,11 +90,11 @@ struct isp_video_buffer {
/* For userspace buffers. */
vm_flags_t vm_flags;
unsigned int npages;
- struct page **pages;
-
- /* For all buffers. */
struct sg_table sgt;
+ /* For non-VM_PFNMAP userspace buffers. */
+ struct page **pages;
+
/* Touched by the interrupt handler. */
struct v4l2_buffer vbuf;
struct list_head irqlist;