aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-simple.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-simple.h')
-rw-r--r--drivers/media/video/tuner-simple.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/media/video/tuner-simple.h b/drivers/media/video/tuner-simple.h
index 9089939a8c02..e46cf0121e03 100644
--- a/drivers/media/video/tuner-simple.h
+++ b/drivers/media/video/tuner-simple.h
@@ -20,25 +20,18 @@
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", __func__);
42 return NULL; 35 return NULL;
43} 36}
44#endif 37#endif