aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-simple.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-22 13:41:51 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 12:42:24 -0400
commit060a5bd764a1d798c20eceeaac5399c672334960 (patch)
treec993cee91438db9f19f766ff1fee98297d3c71e7 /drivers/media/video/tuner-simple.h
parent65e8d29f7a37faaf9c73c633447bebd4b31b2c89 (diff)
V4L/DVB (7127): tuner: remove dependency of tuner-core on tuner-types
This patch fully removes the dependency of tuner-core on tuner-types. There is no longer any need to pass struct tunertype in attach-time config structure - instead pass the tuner type ID. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-simple.h')
-rw-r--r--drivers/media/video/tuner-simple.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/media/video/tuner-simple.h b/drivers/media/video/tuner-simple.h
index 9089939a8c02..bf425f325f87 100644
--- a/drivers/media/video/tuner-simple.h
+++ b/drivers/media/video/tuner-simple.h
@@ -20,23 +20,16 @@
20#include <linux/i2c.h> 20#include <linux/i2c.h>
21#include "dvb_frontend.h" 21#include "dvb_frontend.h"
22 22
23struct simple_tuner_config
24{
25 /* chip type */
26 unsigned int type;
27 struct tunertype *tun;
28};
29
30#if defined(CONFIG_TUNER_SIMPLE) || (defined(CONFIG_TUNER_SIMPLE_MODULE) && defined(MODULE)) 23#if defined(CONFIG_TUNER_SIMPLE) || (defined(CONFIG_TUNER_SIMPLE_MODULE) && defined(MODULE))
31extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, 24extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
32 struct i2c_adapter *i2c_adap, 25 struct i2c_adapter *i2c_adap,
33 u8 i2c_addr, 26 u8 i2c_addr,
34 struct simple_tuner_config *cfg); 27 unsigned int type);
35#else 28#else
36static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, 29static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
37 struct i2c_adapter *i2c_adap, 30 struct i2c_adapter *i2c_adap,
38 u8 i2c_addr, 31 u8 i2c_addr,
39 struct simple_tuner_config *cfg) 32 unsigned int type)
40{ 33{
41 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 34 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
42 return NULL; 35 return NULL;