aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunghak Sung <jh1009.sung@samsung.com>2015-09-22 09:30:29 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-10-01 07:48:18 -0400
commitc139990e842d550db2f59bd4f5993bba90f140e0 (patch)
treee2fd815f8f6d52bd216e518b907fb847278bc649
parenta8077734055f870ba630563868a6349671ca8dfc (diff)
[media] media: videobuf2: Replace videobuf2-core with videobuf2-v4l2
Make videobuf2-v4l2 as a wrapper of videobuf2-core for v4l2-use. And replace videobuf2-core.h with videobuf2-v4l2.h. This renaming change should be accompanied by the modifications of all device drivers that include videobuf2-core.h. It can be done with just running this shell script. replace() { str1=$1 str2=$2 dir=$3 for file in $(find $dir -name *.h -o -name *.c -o -name Makefile) do echo $file sed "s/$str1/$str2/g" $file > $file.out mv $file.out $file done } replace "videobuf2-core" "videobuf2-v4l2" "include/media/" replace "videobuf2-core" "videobuf2-v4l2" "drivers/media/" replace "videobuf2-core" "videobuf2-v4l2" "drivers/usb/gadget/" replace "videobuf2-core" "videobuf2-v4l2" "drivers/staging/media/" Signed-off-by: Junghak Sung <jh1009.sung@samsung.com> Signed-off-by: Geunyoung Kim <nenggun.kim@samsung.com> Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/pci/solo6x10/solo6x10.h2
-rw-r--r--drivers/media/platform/coda/coda-bit.c2
-rw-r--r--drivers/media/platform/coda/coda-common.c2
-rw-r--r--drivers/media/platform/coda/coda.h2
-rw-r--r--drivers/media/platform/coda/trace.h2
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-core.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-capture.c2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-core.c2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-core.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-is.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-isp-video.c2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-isp-video.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-isp.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-lite.c2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-lite.h2
-rw-r--r--drivers/media/platform/exynos4-is/fimc-m2m.c2
-rw-r--r--drivers/media/platform/marvell-ccic/mcam-core.h2
-rw-r--r--drivers/media/platform/omap3isp/ispvideo.h2
-rw-r--r--drivers/media/platform/rcar_jpu.c2
-rw-r--r--drivers/media/platform/s3c-camif/camif-capture.c2
-rw-r--r--drivers/media/platform/s3c-camif/camif-core.c2
-rw-r--r--drivers/media/platform/s3c-camif/camif-core.h2
-rw-r--r--drivers/media/platform/s5p-g2d/g2d.c2
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-core.c2
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c2
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_common.h2
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_dec.c2
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_enc.c2
-rw-r--r--drivers/media/platform/s5p-tv/mixer.h2
-rw-r--r--drivers/media/platform/soc_camera/mx2_camera.c2
-rw-r--r--drivers/media/platform/soc_camera/soc_camera.c2
-rw-r--r--drivers/media/platform/ti-vpe/vpe.c2
-rw-r--r--drivers/media/platform/vivid/vivid-core.h2
-rw-r--r--drivers/media/platform/vsp1/vsp1_video.c2
-rw-r--r--drivers/media/platform/vsp1/vsp1_video.h2
-rw-r--r--drivers/media/platform/xilinx/xilinx-dma.c2
-rw-r--r--drivers/media/platform/xilinx/xilinx-dma.h2
-rw-r--r--drivers/media/usb/go7007/go7007-priv.h2
-rw-r--r--drivers/media/usb/stk1160/stk1160.h2
-rw-r--r--drivers/media/usb/usbtv/usbtv-video.c2
-rw-r--r--drivers/media/usb/uvc/uvcvideo.h2
-rw-r--r--drivers/media/v4l2-core/Makefile2
-rw-r--r--drivers/media/v4l2-core/v4l2-ioctl.c2
-rw-r--r--drivers/media/v4l2-core/v4l2-mem2mem.c2
-rw-r--r--drivers/media/v4l2-core/v4l2-trace.c2
-rw-r--r--drivers/media/v4l2-core/videobuf2-core.c10
-rw-r--r--drivers/media/v4l2-core/videobuf2-dma-contig.c2
-rw-r--r--drivers/media/v4l2-core/videobuf2-dma-sg.c2
-rw-r--r--drivers/media/v4l2-core/videobuf2-memops.c2
-rw-r--r--drivers/media/v4l2-core/videobuf2-v4l2.c31
-rw-r--r--drivers/media/v4l2-core/videobuf2-vmalloc.c2
-rw-r--r--drivers/staging/media/omap4iss/iss_video.h2
-rw-r--r--drivers/usb/gadget/function/uvc_queue.h2
-rw-r--r--include/media/soc_camera.h2
-rw-r--r--include/media/v4l2-mem2mem.h2
-rw-r--r--include/media/videobuf2-core.h2
-rw-r--r--include/media/videobuf2-dma-contig.h2
-rw-r--r--include/media/videobuf2-dma-sg.h2
-rw-r--r--include/media/videobuf2-memops.h2
-rw-r--r--include/media/videobuf2-v4l2.h17
-rw-r--r--include/media/videobuf2-vmalloc.h2
61 files changed, 111 insertions, 63 deletions
diff --git a/drivers/media/pci/solo6x10/solo6x10.h b/drivers/media/pci/solo6x10/solo6x10.h
index 27423d7f5410..5cc9e9dc61e4 100644
--- a/drivers/media/pci/solo6x10/solo6x10.h
+++ b/drivers/media/pci/solo6x10/solo6x10.h
@@ -35,7 +35,7 @@
35#include <media/v4l2-dev.h> 35#include <media/v4l2-dev.h>
36#include <media/v4l2-device.h> 36#include <media/v4l2-device.h>
37#include <media/v4l2-ctrls.h> 37#include <media/v4l2-ctrls.h>
38#include <media/videobuf2-core.h> 38#include <media/videobuf2-v4l2.h>
39 39
40#include "solo6x10-regs.h" 40#include "solo6x10-regs.h"
41 41
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index fd7819d8922d..cd41d49b206d 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -25,7 +25,7 @@
25#include <media/v4l2-ctrls.h> 25#include <media/v4l2-ctrls.h>
26#include <media/v4l2-fh.h> 26#include <media/v4l2-fh.h>
27#include <media/v4l2-mem2mem.h> 27#include <media/v4l2-mem2mem.h>
28#include <media/videobuf2-core.h> 28#include <media/videobuf2-v4l2.h>
29#include <media/videobuf2-dma-contig.h> 29#include <media/videobuf2-dma-contig.h>
30#include <media/videobuf2-vmalloc.h> 30#include <media/videobuf2-vmalloc.h>
31 31
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index a4654e0c104d..998fe6614b33 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -36,7 +36,7 @@
36#include <media/v4l2-event.h> 36#include <media/v4l2-event.h>
37#include <media/v4l2-ioctl.h> 37#include <media/v4l2-ioctl.h>
38#include <media/v4l2-mem2mem.h> 38#include <media/v4l2-mem2mem.h>
39#include <media/videobuf2-core.h> 39#include <media/videobuf2-v4l2.h>
40#include <media/videobuf2-dma-contig.h> 40#include <media/videobuf2-dma-contig.h>
41#include <media/videobuf2-vmalloc.h> 41#include <media/videobuf2-vmalloc.h>
42 42
diff --git a/drivers/media/platform/coda/coda.h b/drivers/media/platform/coda/coda.h
index 59b2af9c7749..feb9671a12bd 100644
--- a/drivers/media/platform/coda/coda.h
+++ b/drivers/media/platform/coda/coda.h
@@ -24,7 +24,7 @@
24#include <media/v4l2-ctrls.h> 24#include <media/v4l2-ctrls.h>
25#include <media/v4l2-device.h> 25#include <media/v4l2-device.h>
26#include <media/v4l2-fh.h> 26#include <media/v4l2-fh.h>
27#include <media/videobuf2-core.h> 27#include <media/videobuf2-v4l2.h>
28 28
29#include "coda_regs.h" 29#include "coda_regs.h"
30 30
diff --git a/drivers/media/platform/coda/trace.h b/drivers/media/platform/coda/trace.h
index d9099a0f7c32..9db6a6662913 100644
--- a/drivers/media/platform/coda/trace.h
+++ b/drivers/media/platform/coda/trace.h
@@ -5,7 +5,7 @@
5#define __CODA_TRACE_H__ 5#define __CODA_TRACE_H__
6 6
7#include <linux/tracepoint.h> 7#include <linux/tracepoint.h>
8#include <media/videobuf2-core.h> 8#include <media/videobuf2-v4l2.h>
9 9
10#include "coda.h" 10#include "coda.h"
11 11
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.h b/drivers/media/platform/exynos-gsc/gsc-core.h
index fa572aacdb3f..769ff50a95a2 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.h
+++ b/drivers/media/platform/exynos-gsc/gsc-core.h
@@ -19,7 +19,7 @@
19#include <linux/videodev2.h> 19#include <linux/videodev2.h>
20#include <linux/io.h> 20#include <linux/io.h>
21#include <linux/pm_runtime.h> 21#include <linux/pm_runtime.h>
22#include <media/videobuf2-core.h> 22#include <media/videobuf2-v4l2.h>
23#include <media/v4l2-ctrls.h> 23#include <media/v4l2-ctrls.h>
24#include <media/v4l2-device.h> 24#include <media/v4l2-device.h>
25#include <media/v4l2-mem2mem.h> 25#include <media/v4l2-mem2mem.h>
diff --git a/drivers/media/platform/exynos4-is/fimc-capture.c b/drivers/media/platform/exynos4-is/fimc-capture.c
index 776ea6d78d03..b1cdadccf2d7 100644
--- a/drivers/media/platform/exynos4-is/fimc-capture.c
+++ b/drivers/media/platform/exynos4-is/fimc-capture.c
@@ -24,7 +24,7 @@
24#include <media/v4l2-device.h> 24#include <media/v4l2-device.h>
25#include <media/v4l2-ioctl.h> 25#include <media/v4l2-ioctl.h>
26#include <media/v4l2-mem2mem.h> 26#include <media/v4l2-mem2mem.h>
27#include <media/videobuf2-core.h> 27#include <media/videobuf2-v4l2.h>
28#include <media/videobuf2-dma-contig.h> 28#include <media/videobuf2-dma-contig.h>
29 29
30#include "common.h" 30#include "common.h"
diff --git a/drivers/media/platform/exynos4-is/fimc-core.c b/drivers/media/platform/exynos4-is/fimc-core.c
index 1101c41ac117..cef2a7f07cdb 100644
--- a/drivers/media/platform/exynos4-is/fimc-core.c
+++ b/drivers/media/platform/exynos4-is/fimc-core.c
@@ -27,7 +27,7 @@
27#include <linux/slab.h> 27#include <linux/slab.h>
28#include <linux/clk.h> 28#include <linux/clk.h>
29#include <media/v4l2-ioctl.h> 29#include <media/v4l2-ioctl.h>
30#include <media/videobuf2-core.h> 30#include <media/videobuf2-v4l2.h>
31#include <media/videobuf2-dma-contig.h> 31#include <media/videobuf2-dma-contig.h>
32 32
33#include "fimc-core.h" 33#include "fimc-core.h"
diff --git a/drivers/media/platform/exynos4-is/fimc-core.h b/drivers/media/platform/exynos4-is/fimc-core.h
index 7328f0845065..ccb5d917292b 100644
--- a/drivers/media/platform/exynos4-is/fimc-core.h
+++ b/drivers/media/platform/exynos4-is/fimc-core.h
@@ -22,7 +22,7 @@
22#include <linux/sizes.h> 22#include <linux/sizes.h>
23 23
24#include <media/media-entity.h> 24#include <media/media-entity.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26#include <media/v4l2-ctrls.h> 26#include <media/v4l2-ctrls.h>
27#include <media/v4l2-device.h> 27#include <media/v4l2-device.h>
28#include <media/v4l2-mem2mem.h> 28#include <media/v4l2-mem2mem.h>
diff --git a/drivers/media/platform/exynos4-is/fimc-is.h b/drivers/media/platform/exynos4-is/fimc-is.h
index e0be691af2d3..386eb49ece7e 100644
--- a/drivers/media/platform/exynos4-is/fimc-is.h
+++ b/drivers/media/platform/exynos4-is/fimc-is.h
@@ -22,7 +22,7 @@
22#include <linux/sizes.h> 22#include <linux/sizes.h>
23#include <linux/spinlock.h> 23#include <linux/spinlock.h>
24#include <linux/types.h> 24#include <linux/types.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26#include <media/v4l2-ctrls.h> 26#include <media/v4l2-ctrls.h>
27 27
28#include "fimc-isp.h" 28#include "fimc-isp.h"
diff --git a/drivers/media/platform/exynos4-is/fimc-isp-video.c b/drivers/media/platform/exynos4-is/fimc-isp-video.c
index 76b6b4d14616..195f9b5e9512 100644
--- a/drivers/media/platform/exynos4-is/fimc-isp-video.c
+++ b/drivers/media/platform/exynos4-is/fimc-isp-video.c
@@ -28,7 +28,7 @@
28 28
29#include <media/v4l2-device.h> 29#include <media/v4l2-device.h>
30#include <media/v4l2-ioctl.h> 30#include <media/v4l2-ioctl.h>
31#include <media/videobuf2-core.h> 31#include <media/videobuf2-v4l2.h>
32#include <media/videobuf2-dma-contig.h> 32#include <media/videobuf2-dma-contig.h>
33#include <media/exynos-fimc.h> 33#include <media/exynos-fimc.h>
34 34
diff --git a/drivers/media/platform/exynos4-is/fimc-isp-video.h b/drivers/media/platform/exynos4-is/fimc-isp-video.h
index 98c662654bb6..f79a1b348aa6 100644
--- a/drivers/media/platform/exynos4-is/fimc-isp-video.h
+++ b/drivers/media/platform/exynos4-is/fimc-isp-video.h
@@ -11,7 +11,7 @@
11#ifndef FIMC_ISP_VIDEO__ 11#ifndef FIMC_ISP_VIDEO__
12#define FIMC_ISP_VIDEO__ 12#define FIMC_ISP_VIDEO__
13 13
14#include <media/videobuf2-core.h> 14#include <media/videobuf2-v4l2.h>
15#include "fimc-isp.h" 15#include "fimc-isp.h"
16 16
17#ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE 17#ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE
diff --git a/drivers/media/platform/exynos4-is/fimc-isp.h b/drivers/media/platform/exynos4-is/fimc-isp.h
index b99be09b49fc..ad9908bb7966 100644
--- a/drivers/media/platform/exynos4-is/fimc-isp.h
+++ b/drivers/media/platform/exynos4-is/fimc-isp.h
@@ -21,7 +21,7 @@
21#include <linux/videodev2.h> 21#include <linux/videodev2.h>
22 22
23#include <media/media-entity.h> 23#include <media/media-entity.h>
24#include <media/videobuf2-core.h> 24#include <media/videobuf2-v4l2.h>
25#include <media/v4l2-device.h> 25#include <media/v4l2-device.h>
26#include <media/v4l2-mediabus.h> 26#include <media/v4l2-mediabus.h>
27#include <media/exynos-fimc.h> 27#include <media/exynos-fimc.h>
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c
index 459bc65b545d..f56c69a63c9b 100644
--- a/drivers/media/platform/exynos4-is/fimc-lite.c
+++ b/drivers/media/platform/exynos4-is/fimc-lite.c
@@ -28,7 +28,7 @@
28#include <media/v4l2-device.h> 28#include <media/v4l2-device.h>
29#include <media/v4l2-ioctl.h> 29#include <media/v4l2-ioctl.h>
30#include <media/v4l2-mem2mem.h> 30#include <media/v4l2-mem2mem.h>
31#include <media/videobuf2-core.h> 31#include <media/videobuf2-v4l2.h>
32#include <media/videobuf2-dma-contig.h> 32#include <media/videobuf2-dma-contig.h>
33#include <media/exynos-fimc.h> 33#include <media/exynos-fimc.h>
34 34
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.h b/drivers/media/platform/exynos4-is/fimc-lite.h
index ea19dc7be63e..7e4c7080e425 100644
--- a/drivers/media/platform/exynos4-is/fimc-lite.h
+++ b/drivers/media/platform/exynos4-is/fimc-lite.h
@@ -19,7 +19,7 @@
19#include <linux/videodev2.h> 19#include <linux/videodev2.h>
20 20
21#include <media/media-entity.h> 21#include <media/media-entity.h>
22#include <media/videobuf2-core.h> 22#include <media/videobuf2-v4l2.h>
23#include <media/v4l2-ctrls.h> 23#include <media/v4l2-ctrls.h>
24#include <media/v4l2-device.h> 24#include <media/v4l2-device.h>
25#include <media/v4l2-mediabus.h> 25#include <media/v4l2-mediabus.h>
diff --git a/drivers/media/platform/exynos4-is/fimc-m2m.c b/drivers/media/platform/exynos4-is/fimc-m2m.c
index d2bfe7c2a6b4..07bfddb322f8 100644
--- a/drivers/media/platform/exynos4-is/fimc-m2m.c
+++ b/drivers/media/platform/exynos4-is/fimc-m2m.c
@@ -24,7 +24,7 @@
24#include <linux/slab.h> 24#include <linux/slab.h>
25#include <linux/clk.h> 25#include <linux/clk.h>
26#include <media/v4l2-ioctl.h> 26#include <media/v4l2-ioctl.h>
27#include <media/videobuf2-core.h> 27#include <media/videobuf2-v4l2.h>
28#include <media/videobuf2-dma-contig.h> 28#include <media/videobuf2-dma-contig.h>
29 29
30#include "common.h" 30#include "common.h"
diff --git a/drivers/media/platform/marvell-ccic/mcam-core.h b/drivers/media/platform/marvell-ccic/mcam-core.h
index 97167f6ffd1e..35cd9e5aedf8 100644
--- a/drivers/media/platform/marvell-ccic/mcam-core.h
+++ b/drivers/media/platform/marvell-ccic/mcam-core.h
@@ -10,7 +10,7 @@
10#include <media/v4l2-common.h> 10#include <media/v4l2-common.h>
11#include <media/v4l2-ctrls.h> 11#include <media/v4l2-ctrls.h>
12#include <media/v4l2-dev.h> 12#include <media/v4l2-dev.h>
13#include <media/videobuf2-core.h> 13#include <media/videobuf2-v4l2.h>
14 14
15/* 15/*
16 * Create our own symbols for the supported buffer modes, but, for now, 16 * Create our own symbols for the supported buffer modes, but, for now,
diff --git a/drivers/media/platform/omap3isp/ispvideo.h b/drivers/media/platform/omap3isp/ispvideo.h
index 4071dd7060ea..31c2445f9eb2 100644
--- a/drivers/media/platform/omap3isp/ispvideo.h
+++ b/drivers/media/platform/omap3isp/ispvideo.h
@@ -20,7 +20,7 @@
20#include <media/media-entity.h> 20#include <media/media-entity.h>
21#include <media/v4l2-dev.h> 21#include <media/v4l2-dev.h>
22#include <media/v4l2-fh.h> 22#include <media/v4l2-fh.h>
23#include <media/videobuf2-core.h> 23#include <media/videobuf2-v4l2.h>
24 24
25#define ISP_VIDEO_DRIVER_NAME "ispvideo" 25#define ISP_VIDEO_DRIVER_NAME "ispvideo"
26#define ISP_VIDEO_DRIVER_VERSION "0.0.2" 26#define ISP_VIDEO_DRIVER_VERSION "0.0.2"
diff --git a/drivers/media/platform/rcar_jpu.c b/drivers/media/platform/rcar_jpu.c
index 2973f070d328..18e62d06797c 100644
--- a/drivers/media/platform/rcar_jpu.c
+++ b/drivers/media/platform/rcar_jpu.c
@@ -37,7 +37,7 @@
37#include <media/v4l2-fh.h> 37#include <media/v4l2-fh.h>
38#include <media/v4l2-mem2mem.h> 38#include <media/v4l2-mem2mem.h>
39#include <media/v4l2-ioctl.h> 39#include <media/v4l2-ioctl.h>
40#include <media/videobuf2-core.h> 40#include <media/videobuf2-v4l2.h>
41#include <media/videobuf2-dma-contig.h> 41#include <media/videobuf2-dma-contig.h>
42 42
43 43
diff --git a/drivers/media/platform/s3c-camif/camif-capture.c b/drivers/media/platform/s3c-camif/camif-capture.c
index edf70725ecf3..bb86cf9b367f 100644
--- a/drivers/media/platform/s3c-camif/camif-capture.c
+++ b/drivers/media/platform/s3c-camif/camif-capture.c
@@ -34,7 +34,7 @@
34#include <media/v4l2-ctrls.h> 34#include <media/v4l2-ctrls.h>
35#include <media/v4l2-event.h> 35#include <media/v4l2-event.h>
36#include <media/v4l2-ioctl.h> 36#include <media/v4l2-ioctl.h>
37#include <media/videobuf2-core.h> 37#include <media/videobuf2-v4l2.h>
38#include <media/videobuf2-dma-contig.h> 38#include <media/videobuf2-dma-contig.h>
39 39
40#include "camif-core.h" 40#include "camif-core.h"
diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c
index f47b332f0418..1ba9bb08f5da 100644
--- a/drivers/media/platform/s3c-camif/camif-core.c
+++ b/drivers/media/platform/s3c-camif/camif-core.c
@@ -32,7 +32,7 @@
32#include <media/media-device.h> 32#include <media/media-device.h>
33#include <media/v4l2-ctrls.h> 33#include <media/v4l2-ctrls.h>
34#include <media/v4l2-ioctl.h> 34#include <media/v4l2-ioctl.h>
35#include <media/videobuf2-core.h> 35#include <media/videobuf2-v4l2.h>
36#include <media/videobuf2-dma-contig.h> 36#include <media/videobuf2-dma-contig.h>
37 37
38#include "camif-core.h" 38#include "camif-core.h"
diff --git a/drivers/media/platform/s3c-camif/camif-core.h b/drivers/media/platform/s3c-camif/camif-core.h
index 35d2fcdc0036..8ef6f26187dd 100644
--- a/drivers/media/platform/s3c-camif/camif-core.h
+++ b/drivers/media/platform/s3c-camif/camif-core.h
@@ -25,7 +25,7 @@
25#include <media/v4l2-dev.h> 25#include <media/v4l2-dev.h>
26#include <media/v4l2-device.h> 26#include <media/v4l2-device.h>
27#include <media/v4l2-mediabus.h> 27#include <media/v4l2-mediabus.h>
28#include <media/videobuf2-core.h> 28#include <media/videobuf2-v4l2.h>
29#include <media/s3c_camif.h> 29#include <media/s3c_camif.h>
30 30
31#define S3C_CAMIF_DRIVER_NAME "s3c-camif" 31#define S3C_CAMIF_DRIVER_NAME "s3c-camif"
diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c
index 421a7c3b595b..81483da2464b 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -23,7 +23,7 @@
23#include <media/v4l2-mem2mem.h> 23#include <media/v4l2-mem2mem.h>
24#include <media/v4l2-device.h> 24#include <media/v4l2-device.h>
25#include <media/v4l2-ioctl.h> 25#include <media/v4l2-ioctl.h>
26#include <media/videobuf2-core.h> 26#include <media/videobuf2-v4l2.h>
27#include <media/videobuf2-dma-contig.h> 27#include <media/videobuf2-dma-contig.h>
28 28
29#include "g2d.h" 29#include "g2d.h"
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index 8b81ff63923d..18e754d319cf 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -26,7 +26,7 @@
26#include <linux/string.h> 26#include <linux/string.h>
27#include <media/v4l2-mem2mem.h> 27#include <media/v4l2-mem2mem.h>
28#include <media/v4l2-ioctl.h> 28#include <media/v4l2-ioctl.h>
29#include <media/videobuf2-core.h> 29#include <media/videobuf2-v4l2.h>
30#include <media/videobuf2-dma-contig.h> 30#include <media/videobuf2-dma-contig.h>
31 31
32#include "jpeg-core.h" 32#include "jpeg-core.h"
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 8de61dc1e142..b3758b8a3c1d 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -22,7 +22,7 @@
22#include <media/v4l2-event.h> 22#include <media/v4l2-event.h>
23#include <linux/workqueue.h> 23#include <linux/workqueue.h>
24#include <linux/of.h> 24#include <linux/of.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26#include "s5p_mfc_common.h" 26#include "s5p_mfc_common.h"
27#include "s5p_mfc_ctrl.h" 27#include "s5p_mfc_ctrl.h"
28#include "s5p_mfc_debug.h" 28#include "s5p_mfc_debug.h"
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h
index 24262bbb1a35..10884a77f79f 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h
@@ -21,7 +21,7 @@
21#include <media/v4l2-ctrls.h> 21#include <media/v4l2-ctrls.h>
22#include <media/v4l2-device.h> 22#include <media/v4l2-device.h>
23#include <media/v4l2-ioctl.h> 23#include <media/v4l2-ioctl.h>
24#include <media/videobuf2-core.h> 24#include <media/videobuf2-v4l2.h>
25#include "regs-mfc.h" 25#include "regs-mfc.h"
26#include "regs-mfc-v8.h" 26#include "regs-mfc-v8.h"
27 27
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
index aebe4fd7f03a..2fd59e7c70c2 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
@@ -22,7 +22,7 @@
22#include <linux/workqueue.h> 22#include <linux/workqueue.h>
23#include <media/v4l2-ctrls.h> 23#include <media/v4l2-ctrls.h>
24#include <media/v4l2-event.h> 24#include <media/v4l2-event.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26#include "s5p_mfc_common.h" 26#include "s5p_mfc_common.h"
27#include "s5p_mfc_ctrl.h" 27#include "s5p_mfc_ctrl.h"
28#include "s5p_mfc_debug.h" 28#include "s5p_mfc_debug.h"
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index 2e57e9f45b85..e42014c1ceca 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -23,7 +23,7 @@
23#include <media/v4l2-event.h> 23#include <media/v4l2-event.h>
24#include <linux/workqueue.h> 24#include <linux/workqueue.h>
25#include <media/v4l2-ctrls.h> 25#include <media/v4l2-ctrls.h>
26#include <media/videobuf2-core.h> 26#include <media/videobuf2-v4l2.h>
27#include "s5p_mfc_common.h" 27#include "s5p_mfc_common.h"
28#include "s5p_mfc_ctrl.h" 28#include "s5p_mfc_ctrl.h"
29#include "s5p_mfc_debug.h" 29#include "s5p_mfc_debug.h"
diff --git a/drivers/media/platform/s5p-tv/mixer.h b/drivers/media/platform/s5p-tv/mixer.h
index fb2acc53112a..855b7238adaa 100644
--- a/drivers/media/platform/s5p-tv/mixer.h
+++ b/drivers/media/platform/s5p-tv/mixer.h
@@ -24,7 +24,7 @@
24#include <linux/spinlock.h> 24#include <linux/spinlock.h>
25#include <linux/wait.h> 25#include <linux/wait.h>
26#include <media/v4l2-device.h> 26#include <media/v4l2-device.h>
27#include <media/videobuf2-core.h> 27#include <media/videobuf2-v4l2.h>
28 28
29#include "regs-mixer.h" 29#include "regs-mixer.h"
30 30
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c
index ea4c423f0cf8..6e413359b595 100644
--- a/drivers/media/platform/soc_camera/mx2_camera.c
+++ b/drivers/media/platform/soc_camera/mx2_camera.c
@@ -32,7 +32,7 @@
32 32
33#include <media/v4l2-common.h> 33#include <media/v4l2-common.h>
34#include <media/v4l2-dev.h> 34#include <media/v4l2-dev.h>
35#include <media/videobuf2-core.h> 35#include <media/videobuf2-v4l2.h>
36#include <media/videobuf2-dma-contig.h> 36#include <media/videobuf2-dma-contig.h>
37#include <media/soc_camera.h> 37#include <media/soc_camera.h>
38#include <media/soc_mediabus.h> 38#include <media/soc_mediabus.h>
diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c
index 43f9d67e9d7f..dc98122e78dc 100644
--- a/drivers/media/platform/soc_camera/soc_camera.c
+++ b/drivers/media/platform/soc_camera/soc_camera.c
@@ -38,7 +38,7 @@
38#include <media/v4l2-dev.h> 38#include <media/v4l2-dev.h>
39#include <media/v4l2-of.h> 39#include <media/v4l2-of.h>
40#include <media/videobuf-core.h> 40#include <media/videobuf-core.h>
41#include <media/videobuf2-core.h> 41#include <media/videobuf2-v4l2.h>
42 42
43/* Default to VGA resolution */ 43/* Default to VGA resolution */
44#define DEFAULT_WIDTH 640 44#define DEFAULT_WIDTH 640
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c
index c44760b705da..d82c2f279dfb 100644
--- a/drivers/media/platform/ti-vpe/vpe.c
+++ b/drivers/media/platform/ti-vpe/vpe.c
@@ -40,7 +40,7 @@
40#include <media/v4l2-event.h> 40#include <media/v4l2-event.h>
41#include <media/v4l2-ioctl.h> 41#include <media/v4l2-ioctl.h>
42#include <media/v4l2-mem2mem.h> 42#include <media/v4l2-mem2mem.h>
43#include <media/videobuf2-core.h> 43#include <media/videobuf2-v4l2.h>
44#include <media/videobuf2-dma-contig.h> 44#include <media/videobuf2-dma-contig.h>
45 45
46#include "vpdma.h" 46#include "vpdma.h"
diff --git a/drivers/media/platform/vivid/vivid-core.h b/drivers/media/platform/vivid/vivid-core.h
index 33a5d3e86ce6..3816d3c69f5c 100644
--- a/drivers/media/platform/vivid/vivid-core.h
+++ b/drivers/media/platform/vivid/vivid-core.h
@@ -21,7 +21,7 @@
21#define _VIVID_CORE_H_ 21#define _VIVID_CORE_H_
22 22
23#include <linux/fb.h> 23#include <linux/fb.h>
24#include <media/videobuf2-core.h> 24#include <media/videobuf2-v4l2.h>
25#include <media/v4l2-device.h> 25#include <media/v4l2-device.h>
26#include <media/v4l2-dev.h> 26#include <media/v4l2-dev.h>
27#include <media/v4l2-ctrls.h> 27#include <media/v4l2-ctrls.h>
diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c
index 3c124c14ce14..dfd45c74c2ae 100644
--- a/drivers/media/platform/vsp1/vsp1_video.c
+++ b/drivers/media/platform/vsp1/vsp1_video.c
@@ -24,7 +24,7 @@
24#include <media/v4l2-fh.h> 24#include <media/v4l2-fh.h>
25#include <media/v4l2-ioctl.h> 25#include <media/v4l2-ioctl.h>
26#include <media/v4l2-subdev.h> 26#include <media/v4l2-subdev.h>
27#include <media/videobuf2-core.h> 27#include <media/videobuf2-v4l2.h>
28#include <media/videobuf2-dma-contig.h> 28#include <media/videobuf2-dma-contig.h>
29 29
30#include "vsp1.h" 30#include "vsp1.h"
diff --git a/drivers/media/platform/vsp1/vsp1_video.h b/drivers/media/platform/vsp1/vsp1_video.h
index 0887a4d2742c..d808301a071f 100644
--- a/drivers/media/platform/vsp1/vsp1_video.h
+++ b/drivers/media/platform/vsp1/vsp1_video.h
@@ -18,7 +18,7 @@
18#include <linux/wait.h> 18#include <linux/wait.h>
19 19
20#include <media/media-entity.h> 20#include <media/media-entity.h>
21#include <media/videobuf2-core.h> 21#include <media/videobuf2-v4l2.h>
22 22
23struct vsp1_video; 23struct vsp1_video;
24 24
diff --git a/drivers/media/platform/xilinx/xilinx-dma.c b/drivers/media/platform/xilinx/xilinx-dma.c
index e779c93cb015..d9dcd4be2792 100644
--- a/drivers/media/platform/xilinx/xilinx-dma.c
+++ b/drivers/media/platform/xilinx/xilinx-dma.c
@@ -22,7 +22,7 @@
22#include <media/v4l2-dev.h> 22#include <media/v4l2-dev.h>
23#include <media/v4l2-fh.h> 23#include <media/v4l2-fh.h>
24#include <media/v4l2-ioctl.h> 24#include <media/v4l2-ioctl.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26#include <media/videobuf2-dma-contig.h> 26#include <media/videobuf2-dma-contig.h>
27 27
28#include "xilinx-dma.h" 28#include "xilinx-dma.h"
diff --git a/drivers/media/platform/xilinx/xilinx-dma.h b/drivers/media/platform/xilinx/xilinx-dma.h
index a540111f8d3d..7a1621a2ef40 100644
--- a/drivers/media/platform/xilinx/xilinx-dma.h
+++ b/drivers/media/platform/xilinx/xilinx-dma.h
@@ -22,7 +22,7 @@
22 22
23#include <media/media-entity.h> 23#include <media/media-entity.h>
24#include <media/v4l2-dev.h> 24#include <media/v4l2-dev.h>
25#include <media/videobuf2-core.h> 25#include <media/videobuf2-v4l2.h>
26 26
27struct dma_chan; 27struct dma_chan;
28struct xvip_composite_device; 28struct xvip_composite_device;
diff --git a/drivers/media/usb/go7007/go7007-priv.h b/drivers/media/usb/go7007/go7007-priv.h
index 2251c3f99d1d..9e83bbf289d0 100644
--- a/drivers/media/usb/go7007/go7007-priv.h
+++ b/drivers/media/usb/go7007/go7007-priv.h
@@ -20,7 +20,7 @@
20#include <media/v4l2-device.h> 20#include <media/v4l2-device.h>
21#include <media/v4l2-ctrls.h> 21#include <media/v4l2-ctrls.h>
22#include <media/v4l2-fh.h> 22#include <media/v4l2-fh.h>
23#include <media/videobuf2-core.h> 23#include <media/videobuf2-v4l2.h>
24 24
25struct go7007; 25struct go7007;
26 26
diff --git a/drivers/media/usb/stk1160/stk1160.h b/drivers/media/usb/stk1160/stk1160.h
index 72cc8e8cbef7..047131b873f1 100644
--- a/drivers/media/usb/stk1160/stk1160.h
+++ b/drivers/media/usb/stk1160/stk1160.h
@@ -23,7 +23,7 @@
23#include <linux/i2c.h> 23#include <linux/i2c.h>
24#include <sound/core.h> 24#include <sound/core.h>
25#include <sound/ac97_codec.h> 25#include <sound/ac97_codec.h>
26#include <media/videobuf2-core.h> 26#include <media/videobuf2-v4l2.h>
27#include <media/v4l2-device.h> 27#include <media/v4l2-device.h>
28#include <media/v4l2-ctrls.h> 28#include <media/v4l2-ctrls.h>
29 29
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c
index 08fb0f2da64d..a46766c9173d 100644
--- a/drivers/media/usb/usbtv/usbtv-video.c
+++ b/drivers/media/usb/usbtv/usbtv-video.c
@@ -29,7 +29,7 @@
29 */ 29 */
30 30
31#include <media/v4l2-ioctl.h> 31#include <media/v4l2-ioctl.h>
32#include <media/videobuf2-core.h> 32#include <media/videobuf2-v4l2.h>
33 33
34#include "usbtv.h" 34#include "usbtv.h"
35 35
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index 1374bd957576..79fa829f42ec 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -15,7 +15,7 @@
15#include <media/v4l2-device.h> 15#include <media/v4l2-device.h>
16#include <media/v4l2-event.h> 16#include <media/v4l2-event.h>
17#include <media/v4l2-fh.h> 17#include <media/v4l2-fh.h>
18#include <media/videobuf2-core.h> 18#include <media/videobuf2-v4l2.h>
19 19
20/* -------------------------------------------------------------------------- 20/* --------------------------------------------------------------------------
21 * UVC constants 21 * UVC constants
diff --git a/drivers/media/v4l2-core/Makefile b/drivers/media/v4l2-core/Makefile
index d1dd440d9d9b..ad0740130aae 100644
--- a/drivers/media/v4l2-core/Makefile
+++ b/drivers/media/v4l2-core/Makefile
@@ -33,7 +33,7 @@ obj-$(CONFIG_VIDEOBUF_DMA_CONTIG) += videobuf-dma-contig.o
33obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o 33obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o
34obj-$(CONFIG_VIDEOBUF_DVB) += videobuf-dvb.o 34obj-$(CONFIG_VIDEOBUF_DVB) += videobuf-dvb.o
35 35
36obj-$(CONFIG_VIDEOBUF2_CORE) += videobuf2-core.o 36obj-$(CONFIG_VIDEOBUF2_CORE) += videobuf2-core.o videobuf2-v4l2.o
37obj-$(CONFIG_VIDEOBUF2_MEMOPS) += videobuf2-memops.o 37obj-$(CONFIG_VIDEOBUF2_MEMOPS) += videobuf2-memops.o
38obj-$(CONFIG_VIDEOBUF2_VMALLOC) += videobuf2-vmalloc.o 38obj-$(CONFIG_VIDEOBUF2_VMALLOC) += videobuf2-vmalloc.o
39obj-$(CONFIG_VIDEOBUF2_DMA_CONTIG) += videobuf2-dma-contig.o 39obj-$(CONFIG_VIDEOBUF2_DMA_CONTIG) += videobuf2-dma-contig.o
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index 4a384fc765b8..5dc69086cf84 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -26,7 +26,7 @@
26#include <media/v4l2-fh.h> 26#include <media/v4l2-fh.h>
27#include <media/v4l2-event.h> 27#include <media/v4l2-event.h>
28#include <media/v4l2-device.h> 28#include <media/v4l2-device.h>
29#include <media/videobuf2-core.h> 29#include <media/videobuf2-v4l2.h>
30 30
31#include <trace/events/v4l2.h> 31#include <trace/events/v4l2.h>
32 32
diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c b/drivers/media/v4l2-core/v4l2-mem2mem.c
index 2f7291cc1fdd..fdcf72c6e486 100644
--- a/drivers/media/v4l2-core/v4l2-mem2mem.c
+++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
@@ -17,7 +17,7 @@
17#include <linux/sched.h> 17#include <linux/sched.h>
18#include <linux/slab.h> 18#include <linux/slab.h>
19 19
20#include <media/videobuf2-core.h> 20#include <media/videobuf2-v4l2.h>
21#include <media/v4l2-mem2mem.h> 21#include <media/v4l2-mem2mem.h>
22#include <media/v4l2-dev.h> 22#include <media/v4l2-dev.h>
23#include <media/v4l2-fh.h> 23#include <media/v4l2-fh.h>
diff --git a/drivers/media/v4l2-core/v4l2-trace.c b/drivers/media/v4l2-core/v4l2-trace.c
index ae10b0248c8e..4004814fab5e 100644
--- a/drivers/media/v4l2-core/v4l2-trace.c
+++ b/drivers/media/v4l2-core/v4l2-trace.c
@@ -1,6 +1,6 @@
1#include <media/v4l2-common.h> 1#include <media/v4l2-common.h>
2#include <media/v4l2-fh.h> 2#include <media/v4l2-fh.h>
3#include <media/videobuf2-core.h> 3#include <media/videobuf2-v4l2.h>
4 4
5#define CREATE_TRACE_POINTS 5#define CREATE_TRACE_POINTS
6#include <trace/events/v4l2.h> 6#include <trace/events/v4l2.h>
diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c
index 4f59b7ec05d0..9518ebd2d73b 100644
--- a/drivers/media/v4l2-core/videobuf2-core.c
+++ b/drivers/media/v4l2-core/videobuf2-core.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * videobuf2-core.c - V4L2 driver helper framework 2 * videobuf2-core.c - video buffer 2 core framework
3 * 3 *
4 * Copyright (C) 2010 Samsung Electronics 4 * Copyright (C) 2010 Samsung Electronics
5 * 5 *
@@ -28,7 +28,7 @@
28#include <media/v4l2-fh.h> 28#include <media/v4l2-fh.h>
29#include <media/v4l2-event.h> 29#include <media/v4l2-event.h>
30#include <media/v4l2-common.h> 30#include <media/v4l2-common.h>
31#include <media/videobuf2-core.h> 31#include <media/videobuf2-v4l2.h>
32 32
33#include <trace/events/v4l2.h> 33#include <trace/events/v4l2.h>
34 34
@@ -1818,7 +1818,7 @@ static int vb2_start_streaming(struct vb2_queue *q)
1818 /* 1818 /*
1819 * If you see this warning, then the driver isn't cleaning up properly 1819 * If you see this warning, then the driver isn't cleaning up properly
1820 * after a failed start_streaming(). See the start_streaming() 1820 * after a failed start_streaming(). See the start_streaming()
1821 * documentation in videobuf2-core.h for more information how buffers 1821 * documentation in videobuf2-v4l2.h for more information how buffers
1822 * should be returned to vb2 in start_streaming(). 1822 * should be returned to vb2 in start_streaming().
1823 */ 1823 */
1824 if (WARN_ON(atomic_read(&q->owned_by_drv_count))) { 1824 if (WARN_ON(atomic_read(&q->owned_by_drv_count))) {
@@ -2205,7 +2205,7 @@ static void __vb2_queue_cancel(struct vb2_queue *q)
2205 /* 2205 /*
2206 * If you see this warning, then the driver isn't cleaning up properly 2206 * If you see this warning, then the driver isn't cleaning up properly
2207 * in stop_streaming(). See the stop_streaming() documentation in 2207 * in stop_streaming(). See the stop_streaming() documentation in
2208 * videobuf2-core.h for more information how buffers should be returned 2208 * videobuf2-v4l2.h for more information how buffers should be returned
2209 * to vb2 in stop_streaming(). 2209 * to vb2 in stop_streaming().
2210 */ 2210 */
2211 if (WARN_ON(atomic_read(&q->owned_by_drv_count))) { 2211 if (WARN_ON(atomic_read(&q->owned_by_drv_count))) {
@@ -2739,7 +2739,7 @@ EXPORT_SYMBOL_GPL(vb2_poll);
2739 * responsible of clearing it's content and setting initial values for some 2739 * responsible of clearing it's content and setting initial values for some
2740 * required entries before calling this function. 2740 * required entries before calling this function.
2741 * q->ops, q->mem_ops, q->type and q->io_modes are mandatory. Please refer 2741 * q->ops, q->mem_ops, q->type and q->io_modes are mandatory. Please refer
2742 * to the struct vb2_queue description in include/media/videobuf2-core.h 2742 * to the struct vb2_queue description in include/media/videobuf2-v4l2.h
2743 * for more information. 2743 * for more information.
2744 */ 2744 */
2745int vb2_queue_init(struct vb2_queue *q) 2745int vb2_queue_init(struct vb2_queue *q)
diff --git a/drivers/media/v4l2-core/videobuf2-dma-contig.c b/drivers/media/v4l2-core/videobuf2-dma-contig.c
index 2397ceb1dc6b..ea33d69bbed9 100644
--- a/drivers/media/v4l2-core/videobuf2-dma-contig.c
+++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c
@@ -17,7 +17,7 @@
17#include <linux/slab.h> 17#include <linux/slab.h>
18#include <linux/dma-mapping.h> 18#include <linux/dma-mapping.h>
19 19
20#include <media/videobuf2-core.h> 20#include <media/videobuf2-v4l2.h>
21#include <media/videobuf2-dma-contig.h> 21#include <media/videobuf2-dma-contig.h>
22#include <media/videobuf2-memops.h> 22#include <media/videobuf2-memops.h>
23 23
diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-core/videobuf2-dma-sg.c
index be7bd6535c9d..34b67784a9c1 100644
--- a/drivers/media/v4l2-core/videobuf2-dma-sg.c
+++ b/drivers/media/v4l2-core/videobuf2-dma-sg.c
@@ -17,7 +17,7 @@
17#include <linux/slab.h> 17#include <linux/slab.h>
18#include <linux/vmalloc.h> 18#include <linux/vmalloc.h>
19 19
20#include <media/videobuf2-core.h> 20#include <media/videobuf2-v4l2.h>
21#include <media/videobuf2-memops.h> 21#include <media/videobuf2-memops.h>
22#include <media/videobuf2-dma-sg.h> 22#include <media/videobuf2-dma-sg.h>
23 23
diff --git a/drivers/media/v4l2-core/videobuf2-memops.c b/drivers/media/v4l2-core/videobuf2-memops.c
index 48c6a49c4928..dbec5923fcf0 100644
--- a/drivers/media/v4l2-core/videobuf2-memops.c
+++ b/drivers/media/v4l2-core/videobuf2-memops.c
@@ -19,7 +19,7 @@
19#include <linux/sched.h> 19#include <linux/sched.h>
20#include <linux/file.h> 20#include <linux/file.h>
21 21
22#include <media/videobuf2-core.h> 22#include <media/videobuf2-v4l2.h>
23#include <media/videobuf2-memops.h> 23#include <media/videobuf2-memops.h>
24 24
25/** 25/**
diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core/videobuf2-v4l2.c
new file mode 100644
index 000000000000..2f2b73820a9c
--- /dev/null
+++ b/drivers/media/v4l2-core/videobuf2-v4l2.c
@@ -0,0 +1,31 @@
1/*
2 * videobuf2-v4l2.c - V4L2 driver helper framework
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 *
6 * Author: Pawel Osciak <pawel@osciak.com>
7 * Marek Szyprowski <m.szyprowski@samsung.com>
8 *
9 * The vb2_thread implementation was based on code from videobuf-dvb.c:
10 * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SUSE Labs]
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation.
15 */
16
17#include <linux/err.h>
18#include <linux/kernel.h>
19#include <linux/module.h>
20#include <linux/mm.h>
21#include <linux/poll.h>
22#include <linux/slab.h>
23#include <linux/sched.h>
24#include <linux/freezer.h>
25#include <linux/kthread.h>
26
27#include <media/videobuf2-v4l2.h>
28
29MODULE_DESCRIPTION("Driver helper framework for Video for Linux 2");
30MODULE_AUTHOR("Pawel Osciak <pawel@osciak.com>, Marek Szyprowski");
31MODULE_LICENSE("GPL");
diff --git a/drivers/media/v4l2-core/videobuf2-vmalloc.c b/drivers/media/v4l2-core/videobuf2-vmalloc.c
index ecb8f0c7f025..1c302743a1fd 100644
--- a/drivers/media/v4l2-core/videobuf2-vmalloc.c
+++ b/drivers/media/v4l2-core/videobuf2-vmalloc.c
@@ -17,7 +17,7 @@
17#include <linux/slab.h> 17#include <linux/slab.h>
18#include <linux/vmalloc.h> 18#include <linux/vmalloc.h>
19 19
20#include <media/videobuf2-core.h> 20#include <media/videobuf2-v4l2.h>
21#include <media/videobuf2-vmalloc.h> 21#include <media/videobuf2-vmalloc.h>
22#include <media/videobuf2-memops.h> 22#include <media/videobuf2-memops.h>
23 23
diff --git a/drivers/staging/media/omap4iss/iss_video.h b/drivers/staging/media/omap4iss/iss_video.h
index f11fce2cb977..6a57b5648e4d 100644
--- a/drivers/staging/media/omap4iss/iss_video.h
+++ b/drivers/staging/media/omap4iss/iss_video.h
@@ -18,7 +18,7 @@
18#include <media/media-entity.h> 18#include <media/media-entity.h>
19#include <media/v4l2-dev.h> 19#include <media/v4l2-dev.h>
20#include <media/v4l2-fh.h> 20#include <media/v4l2-fh.h>
21#include <media/videobuf2-core.h> 21#include <media/videobuf2-v4l2.h>
22#include <media/videobuf2-dma-contig.h> 22#include <media/videobuf2-dma-contig.h>
23 23
24#define ISS_VIDEO_DRIVER_NAME "issvideo" 24#define ISS_VIDEO_DRIVER_NAME "issvideo"
diff --git a/drivers/usb/gadget/function/uvc_queue.h b/drivers/usb/gadget/function/uvc_queue.h
index 01ca9eab3481..0ffe498eaacd 100644
--- a/drivers/usb/gadget/function/uvc_queue.h
+++ b/drivers/usb/gadget/function/uvc_queue.h
@@ -6,7 +6,7 @@
6#include <linux/kernel.h> 6#include <linux/kernel.h>
7#include <linux/poll.h> 7#include <linux/poll.h>
8#include <linux/videodev2.h> 8#include <linux/videodev2.h>
9#include <media/videobuf2-core.h> 9#include <media/videobuf2-v4l2.h>
10 10
11/* Maximum frame size in bytes, for sanity checking. */ 11/* Maximum frame size in bytes, for sanity checking. */
12#define UVC_MAX_FRAME_SIZE (16*1024*1024) 12#define UVC_MAX_FRAME_SIZE (16*1024*1024)
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 2f6261f3e570..97aa13314bfd 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -18,7 +18,7 @@
18#include <linux/pm.h> 18#include <linux/pm.h>
19#include <linux/videodev2.h> 19#include <linux/videodev2.h>
20#include <media/videobuf-core.h> 20#include <media/videobuf-core.h>
21#include <media/videobuf2-core.h> 21#include <media/videobuf2-v4l2.h>
22#include <media/v4l2-async.h> 22#include <media/v4l2-async.h>
23#include <media/v4l2-ctrls.h> 23#include <media/v4l2-ctrls.h>
24#include <media/v4l2-device.h> 24#include <media/v4l2-device.h>
diff --git a/include/media/v4l2-mem2mem.h b/include/media/v4l2-mem2mem.h
index 8849aaba6aa5..5c60da9986c1 100644
--- a/include/media/v4l2-mem2mem.h
+++ b/include/media/v4l2-mem2mem.h
@@ -17,7 +17,7 @@
17#ifndef _MEDIA_V4L2_MEM2MEM_H 17#ifndef _MEDIA_V4L2_MEM2MEM_H
18#define _MEDIA_V4L2_MEM2MEM_H 18#define _MEDIA_V4L2_MEM2MEM_H
19 19
20#include <media/videobuf2-core.h> 20#include <media/videobuf2-v4l2.h>
21 21
22/** 22/**
23 * struct v4l2_m2m_ops - mem-to-mem device driver callbacks 23 * struct v4l2_m2m_ops - mem-to-mem device driver callbacks
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index 589b56c68400..19990d7bf270 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * videobuf2-core.h - V4L2 driver helper framework 2 * videobuf2-core.h - Video Buffer 2 Core Framework
3 * 3 *
4 * Copyright (C) 2010 Samsung Electronics 4 * Copyright (C) 2010 Samsung Electronics
5 * 5 *
diff --git a/include/media/videobuf2-dma-contig.h b/include/media/videobuf2-dma-contig.h
index 8197f87d6c61..c33dfa69d7ab 100644
--- a/include/media/videobuf2-dma-contig.h
+++ b/include/media/videobuf2-dma-contig.h
@@ -13,7 +13,7 @@
13#ifndef _MEDIA_VIDEOBUF2_DMA_CONTIG_H 13#ifndef _MEDIA_VIDEOBUF2_DMA_CONTIG_H
14#define _MEDIA_VIDEOBUF2_DMA_CONTIG_H 14#define _MEDIA_VIDEOBUF2_DMA_CONTIG_H
15 15
16#include <media/videobuf2-core.h> 16#include <media/videobuf2-v4l2.h>
17#include <linux/dma-mapping.h> 17#include <linux/dma-mapping.h>
18 18
19static inline dma_addr_t 19static inline dma_addr_t
diff --git a/include/media/videobuf2-dma-sg.h b/include/media/videobuf2-dma-sg.h
index 14ce3068b642..8d1083f83c3d 100644
--- a/include/media/videobuf2-dma-sg.h
+++ b/include/media/videobuf2-dma-sg.h
@@ -13,7 +13,7 @@
13#ifndef _MEDIA_VIDEOBUF2_DMA_SG_H 13#ifndef _MEDIA_VIDEOBUF2_DMA_SG_H
14#define _MEDIA_VIDEOBUF2_DMA_SG_H 14#define _MEDIA_VIDEOBUF2_DMA_SG_H
15 15
16#include <media/videobuf2-core.h> 16#include <media/videobuf2-v4l2.h>
17 17
18static inline struct sg_table *vb2_dma_sg_plane_desc( 18static inline struct sg_table *vb2_dma_sg_plane_desc(
19 struct vb2_buffer *vb, unsigned int plane_no) 19 struct vb2_buffer *vb, unsigned int plane_no)
diff --git a/include/media/videobuf2-memops.h b/include/media/videobuf2-memops.h
index 6513c7ec3116..36565c7acb54 100644
--- a/include/media/videobuf2-memops.h
+++ b/include/media/videobuf2-memops.h
@@ -14,7 +14,7 @@
14#ifndef _MEDIA_VIDEOBUF2_MEMOPS_H 14#ifndef _MEDIA_VIDEOBUF2_MEMOPS_H
15#define _MEDIA_VIDEOBUF2_MEMOPS_H 15#define _MEDIA_VIDEOBUF2_MEMOPS_H
16 16
17#include <media/videobuf2-core.h> 17#include <media/videobuf2-v4l2.h>
18#include <linux/mm.h> 18#include <linux/mm.h>
19 19
20/** 20/**
diff --git a/include/media/videobuf2-v4l2.h b/include/media/videobuf2-v4l2.h
new file mode 100644
index 000000000000..d4a4d9acd39b
--- /dev/null
+++ b/include/media/videobuf2-v4l2.h
@@ -0,0 +1,17 @@
1/*
2 * videobuf2-v4l2.h - V4L2 driver helper framework
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 *
6 * Author: Pawel Osciak <pawel@osciak.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation.
11 */
12#ifndef _MEDIA_VIDEOBUF2_V4L2_H
13#define _MEDIA_VIDEOBUF2_V4L2_H
14
15#include <media/videobuf2-core.h>
16
17#endif /* _MEDIA_VIDEOBUF2_V4L2_H */
diff --git a/include/media/videobuf2-vmalloc.h b/include/media/videobuf2-vmalloc.h
index 93a76b43038d..a63fe662140a 100644
--- a/include/media/videobuf2-vmalloc.h
+++ b/include/media/videobuf2-vmalloc.h
@@ -13,7 +13,7 @@
13#ifndef _MEDIA_VIDEOBUF2_VMALLOC_H 13#ifndef _MEDIA_VIDEOBUF2_VMALLOC_H
14#define _MEDIA_VIDEOBUF2_VMALLOC_H 14#define _MEDIA_VIDEOBUF2_VMALLOC_H
15 15
16#include <media/videobuf2-core.h> 16#include <media/videobuf2-v4l2.h>
17 17
18extern const struct vb2_mem_ops vb2_vmalloc_memops; 18extern const struct vb2_mem_ops vb2_vmalloc_memops;
19 19