aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-08 23:04:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:14 -0400
commit5aed9755bcdc20205901b5925a684f4e60060f23 (patch)
tree7259e4f0208c20438f1437a3f0fa5aab98bbaadb /drivers/media/dvb
parent181bc8d97a7433ee6e5b7eb14b467914e0437276 (diff)
V4L/DVB (10899): remove build-time dependencies on dib7000p
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/dib7000p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.h b/drivers/media/dvb/frontends/dib7000p.h
index aab8112e2db2..4e3fd7639276 100644
--- a/drivers/media/dvb/frontends/dib7000p.h
+++ b/drivers/media/dvb/frontends/dib7000p.h
@@ -49,6 +49,7 @@ extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c,
49 struct dib7000p_config cfg[]); 49 struct dib7000p_config cfg[]);
50extern int dib7000p_set_gpio(struct dvb_frontend *, u8 num, u8 dir, u8 val); 50extern int dib7000p_set_gpio(struct dvb_frontend *, u8 num, u8 dir, u8 val);
51extern int dib7000p_set_wbd_ref(struct dvb_frontend *, u16 value); 51extern int dib7000p_set_wbd_ref(struct dvb_frontend *, u16 value);
52extern int dib7000pc_detection(struct i2c_adapter *i2c_adap);
52#else 53#else
53static inline struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap, 54static inline struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap,
54 u8 i2c_addr, 55 u8 i2c_addr,
@@ -88,8 +89,12 @@ int dib7000p_set_wbd_ref(struct dvb_frontend *fe, u16 value)
88 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 89 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
89 return -ENODEV; 90 return -ENODEV;
90} 91}
91#endif
92 92
93extern int dib7000pc_detection(struct i2c_adapter *i2c_adap); 93static inline int dib7000pc_detection(struct i2c_adapter *i2c_adap)
94{
95 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
96 return -ENODEV;
97}
98#endif
94 99
95#endif 100#endif