diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-03-08 23:03:25 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2009-03-08 23:03:25 -0400 |
commit | 62a243115aca4914efcae622563c65a0e6875790 (patch) | |
tree | bfae46e2dd31bd4ba22c0d4953b01aa6f33773c0 /linux | |
parent | fa9f1bcf738c7685a6c6ac771f75275cc86a5e85 (diff) | |
download | mediapointer-dvb-s2-62a243115aca4914efcae622563c65a0e6875790.tar.gz mediapointer-dvb-s2-62a243115aca4914efcae622563c65a0e6875790.tar.bz2 |
remove build-time dependencies on dib7000m
From: Michael Krufky <mkrufky@linuxtv.org>
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib7000m.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib7000m.h b/linux/drivers/media/dvb/frontends/dib7000m.h index 597e9cc2d..f93db0fda 100644 --- a/linux/drivers/media/dvb/frontends/dib7000m.h +++ b/linux/drivers/media/dvb/frontends/dib7000m.h @@ -38,8 +38,28 @@ struct dib7000m_config { #define DEFAULT_DIB7000M_I2C_ADDRESS 18 +#if defined(CONFIG_DVB_DIB7000M) || (defined(CONFIG_DVB_DIB7000M_MODULE) && \ + defined(MODULE)) extern struct dvb_frontend * dib7000m_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000m_config *cfg); extern struct i2c_adapter * dib7000m_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int); +#else +static inline +struct dvb_frontend *dib7000m_attach(struct i2c_adapter *i2c_adap, + u8 i2c_addr, struct dib7000m_config *cfg) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); + return NULL; +} + +static inline +struct i2c_adapter *dib7000m_get_i2c_master(struct dvb_frontend *demod, + enum dibx000_i2c_interface intf, + int gating) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); + return NULL; +} +#endif /* TODO extern INT dib7000m_set_gpio(struct dibDemod *demod, UCHAR num, UCHAR dir, UCHAR val); |