aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-08 23:59:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:14 -0400
commit53655c6a63bfa3224977fcc1edca28fb6529fc2b (patch)
tree6e353592a403e5edced1ba84654a15e44b12016c /drivers/media/dvb
parent5aed9755bcdc20205901b5925a684f4e60060f23 (diff)
V4L/DVB (10900): remove build-time dependencies on dib3000mc
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/dib3000mc.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mc.h b/drivers/media/dvb/frontends/dib3000mc.h
index 4142ed7a47d0..b49bf3cb1ed7 100644
--- a/drivers/media/dvb/frontends/dib3000mc.h
+++ b/drivers/media/dvb/frontends/dib3000mc.h
@@ -40,18 +40,41 @@ struct dib3000mc_config {
40#define DEFAULT_DIB3000P_I2C_ADDRESS 24 40#define DEFAULT_DIB3000P_I2C_ADDRESS 24
41 41
42#if defined(CONFIG_DVB_DIB3000MC) || (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE)) 42#if defined(CONFIG_DVB_DIB3000MC) || (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE))
43extern struct dvb_frontend * dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib3000mc_config *cfg); 43extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap,
44 u8 i2c_addr,
45 struct dib3000mc_config *cfg);
46extern int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c,
47 int no_of_demods, u8 default_addr,
48 struct dib3000mc_config cfg[]);
49extern
50struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod,
51 int gating);
44#else 52#else
45static inline struct dvb_frontend * dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib3000mc_config *cfg) 53static inline
54struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr,
55 struct dib3000mc_config *cfg)
46{ 56{
47 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 57 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
48 return NULL; 58 return NULL;
49} 59}
50#endif // CONFIG_DVB_DIB3000MC
51 60
52extern int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib3000mc_config cfg[]); 61static inline
62int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c,
63 int no_of_demods, u8 default_addr,
64 struct dib3000mc_config cfg[])
65{
66 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
67 return -ENODEV;
68}
53 69
54extern struct i2c_adapter * dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod, int gating); 70static inline
71struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod,
72 int gating)
73{
74 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
75 return NULL;
76}
77#endif // CONFIG_DVB_DIB3000MC
55 78
56extern int dib3000mc_pid_control(struct dvb_frontend *fe, int index, int pid,int onoff); 79extern int dib3000mc_pid_control(struct dvb_frontend *fe, int index, int pid,int onoff);
57extern int dib3000mc_pid_parse(struct dvb_frontend *fe, int onoff); 80extern int dib3000mc_pid_parse(struct dvb_frontend *fe, int onoff);