summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/lgdt330x.h
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-07-28 23:10:25 +0100
committerAndrew de Quincey <adq_dvb@lidskialf.net>2006-07-28 23:10:25 +0100
commitab936b443d684bd023ba22857d6b4b58c22c0db7 (patch)
tree7a3d7c9a9b575df59c8bcccfbf4ccee4f92459f8 /linux/drivers/media/dvb/frontends/lgdt330x.h
parenta32e2e3de20c2e2ed969f30b49ebc9efd04f8e81 (diff)
downloadmediapointer-dvb-s2-ab936b443d684bd023ba22857d6b4b58c22c0db7.tar.gz
mediapointer-dvb-s2-ab936b443d684bd023ba22857d6b4b58c22c0db7.tar.bz2
Add Kconfig infrastructure for dvb_attach
From: Andrew de Quincey <adq_dvb@lidskialf.net> Allow it to be en/disabled Disable it in < 2.6.17 due to symbol_xxx() bug Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt330x.h')
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt330x.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.h b/linux/drivers/media/dvb/frontends/lgdt330x.h
index bad903c6f..3f96b4855 100644
--- a/linux/drivers/media/dvb/frontends/lgdt330x.h
+++ b/linux/drivers/media/dvb/frontends/lgdt330x.h
@@ -52,8 +52,17 @@ struct lgdt330x_config
int clock_polarity_flip;
};
+#if defined(CONFIG_DVB_LGDT330X) || defined(CONFIG_DVB_LGDT330X_MODULE)
extern struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
struct i2c_adapter* i2c);
+#else
+static inline struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
+ struct i2c_adapter* i2c)
+{
+ printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+ return NULL;
+}
+#endif // CONFIG_DVB_LGDT330X
#endif /* LGDT330X_H */