diff options
Diffstat (limited to 'linux/drivers/media/video/tea5761.h')
-rw-r--r-- | linux/drivers/media/video/tea5761.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea5761.h b/linux/drivers/media/video/tea5761.h index f287c0291..73a03b427 100644 --- a/linux/drivers/media/video/tea5761.h +++ b/linux/drivers/media/video/tea5761.h @@ -20,9 +20,28 @@ #include <linux/i2c.h> #include "dvb_frontend.h" +#if defined(CONFIG_TUNER_TEA5761) || (defined(CONFIG_TUNER_TEA5761_MODULE) && defined(MODULE)) extern int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr); + extern struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe, struct i2c_adapter* i2c_adap, u8 i2c_addr); +#else +static inline int tea5761_autodetection(struct i2c_adapter* i2c_adap, + u8 i2c_addr) +{ + printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", + __FUNCTION__); + return -EINVAL; +} + +static inline struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe, + struct i2c_adapter* i2c_adap, + u8 i2c_addr) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); + return NULL; +} +#endif #endif /* __TEA5761_H__ */ |