summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/cx24123.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-07-29 15:41:40 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-07-29 15:41:40 -0300
commit9a9f822910db8450c5478fd7146b5b52088d7aaa (patch)
tree9b588f2096c3b7351e4c127a2c8ffbc8b45a6c55 /linux/drivers/media/dvb/frontends/cx24123.h
parent7272f8f51ed77805115b9716b72ab4b6d3db0049 (diff)
parentf7eb6e544385a7d7a594e4bedb982e39a500a838 (diff)
downloadmediapointer-dvb-s2-9a9f822910db8450c5478fd7146b5b52088d7aaa.tar.gz
mediapointer-dvb-s2-9a9f822910db8450c5478fd7146b5b52088d7aaa.tar.bz2
merge: http://linuxtv.org/hg/~quincy/v4l-dvb-attach
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/cx24123.h')
-rw-r--r--linux/drivers/media/dvb/frontends/cx24123.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24123.h b/linux/drivers/media/dvb/frontends/cx24123.h
index 9606f8259..6a8cb4c41 100644
--- a/linux/drivers/media/dvb/frontends/cx24123.h
+++ b/linux/drivers/media/dvb/frontends/cx24123.h
@@ -32,7 +32,16 @@ struct cx24123_config
int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
};
+#if defined(CONFIG_DVB_CX24123) || defined(CONFIG_DVB_CX24123_MODULE)
extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config,
struct i2c_adapter* i2c);
+#else
+static inline struct dvb_frontend* cx24123_attach(const struct cx24123_config* config,
+ struct i2c_adapter* i2c)
+{
+ printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+ return NULL;
+}
+#endif // CONFIG_DVB_CX24123
#endif /* CX24123_H */