diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-08-27 20:59:35 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-08-27 20:59:35 -0400 |
commit | f876c2dd29df6aadcb5982273b486a95c2e4b193 (patch) | |
tree | b8ac44df7c020436dbe4fff3cf6ef619eafa9c36 /linux/drivers/media/video/tea5767.h | |
parent | 04de94c284ba5fdbc2e530a6ab6eed257ce640af (diff) | |
download | mediapointer-dvb-s2-f876c2dd29df6aadcb5982273b486a95c2e4b193.tar.gz mediapointer-dvb-s2-f876c2dd29df6aadcb5982273b486a95c2e4b193.tar.bz2 |
tuner: alter build to produce separate modules
From: Michael Krufky <mkrufky@linuxtv.org>
Break tuner.ko into separate modules. This was a quick change -
Tuner sub-drivers are still static-linked to tuner.ko, this will
change after using dvb_attach and removing the probing functions.
After this change, one can deselect undesired tuner sub-drivers via Kconfig.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/tea5767.h')
-rw-r--r-- | linux/drivers/media/video/tea5767.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea5767.h b/linux/drivers/media/video/tea5767.h index 68e9263ba..5d78281ad 100644 --- a/linux/drivers/media/video/tea5767.h +++ b/linux/drivers/media/video/tea5767.h @@ -20,10 +20,28 @@ #include <linux/i2c.h> #include "dvb_frontend.h" +#if defined(CONFIG_TUNER_TEA5767) || (defined(CONFIG_TUNER_TEA5767_MODULE) && defined(MODULE)) extern int tea5767_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr); extern struct dvb_frontend *tea5767_attach(struct dvb_frontend *fe, struct i2c_adapter* i2c_adap, u8 i2c_addr); +#else +static inline int tea5767_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 *tea5767_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 /* __TEA5767_H__ */ |