aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-22 13:41:49 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 12:42:22 -0400
commit82b3083d2673e5fe8ac508071038b2b4c10bbf9c (patch)
treebb32804b2be1ea16936f033c944597e2b2126c83
parent7f8447d13d3abaeb46d0e6ae2890a843aa09561f (diff)
V4L/DVB (7125): tuner: build tuner-types independently of tuner-core
tuner-types is needed for tuner-simple, and does not need to be bound to tuner-core. Any caller of tuner-simple, including tuner-core, needs to pass a structure from tuner-types into tuner-simple at attach-time. Export the two needed symbols from tuner-types for now, so that card-level drivers can attach tuner-simple for hybrid dvb_frontend devices. We will remove this dependency altogether as tuner refactoring phase 3 progresses. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/Kconfig5
-rw-r--r--drivers/media/video/Makefile3
-rw-r--r--drivers/media/video/tuner-types.c14
3 files changed, 21 insertions, 1 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 11950698a2e7..408838418d04 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -71,9 +71,13 @@ source "drivers/media/dvb/Kconfig"
71 71
72source "drivers/media/common/Kconfig" 72source "drivers/media/common/Kconfig"
73 73
74config VIDEO_TUNER_TYPES
75 tristate
76
74config VIDEO_TUNER 77config VIDEO_TUNER
75 tristate 78 tristate
76 depends on I2C 79 depends on I2C
80 select VIDEO_TUNER_TYPES
77 select TUNER_XC2028 if !VIDEO_TUNER_CUSTOMIZE 81 select TUNER_XC2028 if !VIDEO_TUNER_CUSTOMIZE
78 select TUNER_MT20XX if !VIDEO_TUNER_CUSTOMIZE 82 select TUNER_MT20XX if !VIDEO_TUNER_CUSTOMIZE
79 select TUNER_TDA8290 if !VIDEO_TUNER_CUSTOMIZE 83 select TUNER_TDA8290 if !VIDEO_TUNER_CUSTOMIZE
@@ -136,6 +140,7 @@ config TUNER_TEA5767
136config TUNER_SIMPLE 140config TUNER_SIMPLE
137 tristate "Simple tuner support" 141 tristate "Simple tuner support"
138 depends on I2C 142 depends on I2C
143 select VIDEO_TUNER_TYPES
139 select TUNER_TDA9887 144 select TUNER_TDA9887
140 default m if VIDEO_TUNER_CUSTOMIZE 145 default m if VIDEO_TUNER_CUSTOMIZE
141 help 146 help
diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile
index 3f209b32eeac..6f1ef09df1d6 100644
--- a/drivers/media/video/Makefile
+++ b/drivers/media/video/Makefile
@@ -4,7 +4,7 @@
4 4
5zr36067-objs := zoran_procfs.o zoran_device.o \ 5zr36067-objs := zoran_procfs.o zoran_device.o \
6 zoran_driver.o zoran_card.o 6 zoran_driver.o zoran_card.o
7tuner-objs := tuner-core.o tuner-types.o 7tuner-objs := tuner-core.o
8 8
9msp3400-objs := msp3400-driver.o msp3400-kthreads.o 9msp3400-objs := msp3400-driver.o msp3400-kthreads.o
10 10
@@ -84,6 +84,7 @@ obj-$(CONFIG_VIDEO_DPC) += dpc7146.o
84obj-$(CONFIG_TUNER_3036) += tuner-3036.o 84obj-$(CONFIG_TUNER_3036) += tuner-3036.o
85 85
86obj-$(CONFIG_VIDEO_TUNER) += tuner.o 86obj-$(CONFIG_VIDEO_TUNER) += tuner.o
87obj-$(CONFIG_VIDEO_TUNER_TYPES) += tuner-types.o
87 88
88obj-$(CONFIG_TUNER_XC2028) += tuner-xc2028.o 89obj-$(CONFIG_TUNER_XC2028) += tuner-xc2028.o
89obj-$(CONFIG_TUNER_SIMPLE) += tuner-simple.o 90obj-$(CONFIG_TUNER_SIMPLE) += tuner-simple.o
diff --git a/drivers/media/video/tuner-types.c b/drivers/media/video/tuner-types.c
index 883047f9c28c..87f28b5a2cfa 100644
--- a/drivers/media/video/tuner-types.c
+++ b/drivers/media/video/tuner-types.c
@@ -1480,5 +1480,19 @@ struct tunertype tuners[] = {
1480 /* see xc5000.c for details */ 1480 /* see xc5000.c for details */
1481 }, 1481 },
1482}; 1482};
1483EXPORT_SYMBOL(tuners);
1483 1484
1484unsigned const int tuner_count = ARRAY_SIZE(tuners); 1485unsigned const int tuner_count = ARRAY_SIZE(tuners);
1486EXPORT_SYMBOL(tuner_count);
1487
1488MODULE_DESCRIPTION("Simple tuner device type database");
1489MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer");
1490MODULE_LICENSE("GPL");
1491
1492/*
1493 * Overrides for Emacs so that we follow Linus's tabbing style.
1494 * ---------------------------------------------------------------------------
1495 * Local variables:
1496 * c-basic-offset: 8
1497 * End:
1498 */