aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-08-20 09:32:19 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-21 06:55:47 -0400
commitb6334460f2929c02d0d1f0fbad9f909229d00d50 (patch)
tree8a33cc158685126328a573c9b4e81d26390d6faa /drivers/media/v4l2-core
parent7a46e188bf80cb75c08d2d95802a5d124929fb20 (diff)
[media] Cleanup media Kconfig files
- get rid of ridden V4L2_COMMON symbol This symbol is not needed anymore; it can be folded with V4L2 one, simplifying the Kconfig a little bit; - Comment why some Kconfig items are needed; - Remove if test for MEDIA_CAMERA_SUPPORT, replacing it by depends on. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r--drivers/media/v4l2-core/Kconfig27
-rw-r--r--drivers/media/v4l2-core/Makefile2
2 files changed, 17 insertions, 12 deletions
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig
index 05e530c0b012..0c54e19d9944 100644
--- a/drivers/media/v4l2-core/Kconfig
+++ b/drivers/media/v4l2-core/Kconfig
@@ -2,6 +2,12 @@
2# Generic video config states 2# Generic video config states
3# 3#
4 4
5# Enable the V4L2 core and API
6config VIDEO_V4L2
7 tristate
8 depends on (I2C || I2C=n) && VIDEO_DEV
9 default (I2C || I2C=n) && VIDEO_DEV
10
5config VIDEO_ADV_DEBUG 11config VIDEO_ADV_DEBUG
6 bool "Enable advanced debug functionality on V4L2 drivers" 12 bool "Enable advanced debug functionality on V4L2 drivers"
7 default n 13 default n
@@ -19,11 +25,17 @@ config VIDEO_FIXED_MINOR_RANGES
19 25
20 When in doubt, say N. 26 When in doubt, say N.
21 27
22config VIDEO_V4L2 28# Used by drivers that need tuner.ko
29config VIDEO_TUNER
23 tristate 30 tristate
24 depends on VIDEO_V4L2_COMMON 31 depends on MEDIA_TUNER
25 default y 32
33# Used by drivers that need v4l2-mem2mem.ko
34config V4L2_MEM2MEM_DEV
35 tristate
36 depends on VIDEOBUF2_CORE
26 37
38# Used by drivers that need Videobuf modules
27config VIDEOBUF_GEN 39config VIDEOBUF_GEN
28 tristate 40 tristate
29 41
@@ -45,14 +57,7 @@ config VIDEOBUF_DVB
45 tristate 57 tristate
46 select VIDEOBUF_GEN 58 select VIDEOBUF_GEN
47 59
48config VIDEO_TUNER 60# Used by drivers that need Videobuf2 modules
49 tristate
50 depends on MEDIA_TUNER
51
52config V4L2_MEM2MEM_DEV
53 tristate
54 depends on VIDEOBUF2_CORE
55
56config VIDEOBUF2_CORE 61config VIDEOBUF2_CORE
57 tristate 62 tristate
58 63
diff --git a/drivers/media/v4l2-core/Makefile b/drivers/media/v4l2-core/Makefile
index c0e90bc23692..c2d61d4f03d1 100644
--- a/drivers/media/v4l2-core/Makefile
+++ b/drivers/media/v4l2-core/Makefile
@@ -11,7 +11,7 @@ ifeq ($(CONFIG_COMPAT),y)
11endif 11endif
12 12
13obj-$(CONFIG_VIDEO_DEV) += videodev.o v4l2-int-device.o 13obj-$(CONFIG_VIDEO_DEV) += videodev.o v4l2-int-device.o
14obj-$(CONFIG_VIDEO_V4L2_COMMON) += v4l2-common.o 14obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
15 15
16obj-$(CONFIG_VIDEO_TUNER) += tuner.o 16obj-$(CONFIG_VIDEO_TUNER) += tuner.o
17 17