summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stb0899_drv.h
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2007-10-08 23:51:54 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 20:53:18 +0100
commitae9902da96b4d2d82707706c7fbc93a8e501dde8 (patch)
tree6de6c61a449db3847f676120bc18d8d441febf2e /drivers/media/dvb/frontends/stb0899_drv.h
parentV4L/DVB (9416): Hmmph, a proper calculation broke the working behaviour. (diff)
downloadlinux-ae9902da96b4d2d82707706c7fbc93a8e501dde8.tar.xz
linux-ae9902da96b4d2d82707706c7fbc93a8e501dde8.zip
V4L/DVB (9417): DVB_ATTACH for STB0899, STB6100, TDA8261
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stb0899_drv.h')
-rw-r--r--drivers/media/dvb/frontends/stb0899_drv.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.h b/drivers/media/dvb/frontends/stb0899_drv.h
index 8cb320643f8e..1e28114febf3 100644
--- a/drivers/media/dvb/frontends/stb0899_drv.h
+++ b/drivers/media/dvb/frontends/stb0899_drv.h
@@ -97,6 +97,21 @@ struct stb0899_config {
int (*tuner_set_rfsiggain)(struct dvb_frontend *fe, u32 rf_gain);
};
-extern struct dvb_frontend *stb0899_attach(struct stb0899_config *config, struct i2c_adapter *i2c);
+#if defined(CONFIG_DVB_STB0899) || (defined(CONFIG_DVB_STB0899_MODULE) && defined(MODULE))
+
+extern struct dvb_frontend *stb0899_attach(struct stb0899_config *config,
+ struct i2c_adapter *i2c);
+
+#else
+
+static inline struct dvb_frontend *stb0899_attach(struct stb0899_config *config,
+ struct i2c_adapter *i2c)
+{
+ printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
+ return NULL;
+}
+
+#endif //CONFIG_DVB_STB0899
+
#endif