summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda826x.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-10-09 10:17:45 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-10-14 05:44:06 +0200
commitc071fab453f7b181c49d92d06d936bb243ef1932 (patch)
treec63dcfddf58dd8ab65d33e0cc7972b2a5cca2a33 /drivers/media/dvb/frontends/tda826x.h
parentV4L/DVB (4733): Tda10086: fix frontend selection for dvb_attach (diff)
downloadlinux-c071fab453f7b181c49d92d06d936bb243ef1932.tar.xz
linux-c071fab453f7b181c49d92d06d936bb243ef1932.zip
V4L/DVB (4734): Tda826x: fix frontend selection for dvb_attach
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda826x.h')
-rw-r--r--drivers/media/dvb/frontends/tda826x.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/tda826x.h b/drivers/media/dvb/frontends/tda826x.h
index 3307607632b0..83998c001196 100644
--- a/drivers/media/dvb/frontends/tda826x.h
+++ b/drivers/media/dvb/frontends/tda826x.h
@@ -35,6 +35,19 @@
* @param has_loopthrough Set to 1 if the card has a loopthrough RF connector.
* @return FE pointer on success, NULL on failure.
*/
-extern struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int has_loopthrough);
-
-#endif
+#if defined(CONFIG_DVB_TDA826X) || defined(CONFIG_DVB_TDA826X_MODULE)
+extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
+ struct i2c_adapter *i2c,
+ int has_loopthrough);
+#else
+static inline struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe,
+ int addr,
+ struct i2c_adapter *i2c,
+ int has_loopthrough)
+{
+ printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+ return NULL;
+}
+#endif // CONFIG_DVB_TDA826X
+
+#endif // __DVB_TDA826X_H__