aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-08 23:03:25 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:14 -0400
commit181bc8d97a7433ee6e5b7eb14b467914e0437276 (patch)
treee1af6465948865f6103a3fbed3be46b21343d008
parent0aab2e6044037c34ccb5fe94c616e532ba95f541 (diff)
V4L/DVB (10898): remove build-time dependencies on dib7000m
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/dib7000m.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dib7000m.h b/drivers/media/dvb/frontends/dib7000m.h
index 597e9cc2da62..f93db0fda47e 100644
--- a/drivers/media/dvb/frontends/dib7000m.h
+++ b/drivers/media/dvb/frontends/dib7000m.h
@@ -38,8 +38,28 @@ struct dib7000m_config {
38 38
39#define DEFAULT_DIB7000M_I2C_ADDRESS 18 39#define DEFAULT_DIB7000M_I2C_ADDRESS 18
40 40
41#if defined(CONFIG_DVB_DIB7000M) || (defined(CONFIG_DVB_DIB7000M_MODULE) && \
42 defined(MODULE))
41extern struct dvb_frontend * dib7000m_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000m_config *cfg); 43extern struct dvb_frontend * dib7000m_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000m_config *cfg);
42extern struct i2c_adapter * dib7000m_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int); 44extern struct i2c_adapter * dib7000m_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int);
45#else
46static inline
47struct dvb_frontend *dib7000m_attach(struct i2c_adapter *i2c_adap,
48 u8 i2c_addr, struct dib7000m_config *cfg)
49{
50 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
51 return NULL;
52}
53
54static inline
55struct i2c_adapter *dib7000m_get_i2c_master(struct dvb_frontend *demod,
56 enum dibx000_i2c_interface intf,
57 int gating)
58{
59 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
60 return NULL;
61}
62#endif
43 63
44/* TODO 64/* TODO
45extern INT dib7000m_set_gpio(struct dibDemod *demod, UCHAR num, UCHAR dir, UCHAR val); 65extern INT dib7000m_set_gpio(struct dibDemod *demod, UCHAR num, UCHAR dir, UCHAR val);