diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-09-06 23:31:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 11:30:35 -0400 |
commit | 92cd24fea4feefb9bde8efab3fdb25f525220672 (patch) | |
tree | 59b7ba8447f674eece69a23d9699c3b207f47f57 /drivers/media | |
parent | 141276b57e1f83a86b8e77554b36511be0a7049c (diff) |
V4L/DVB (4610): Add tua6100 config wrapper
I had forgotten to add the wrapper round the tua6100_attach function if its
disabled in Kconfig
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/tua6100.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/tua6100.h b/drivers/media/dvb/frontends/tua6100.h index 2e5d8fb8d9ba..8f98033ffa7b 100644 --- a/drivers/media/dvb/frontends/tua6100.h +++ b/drivers/media/dvb/frontends/tua6100.h | |||
@@ -34,14 +34,14 @@ | |||
34 | #include <linux/i2c.h> | 34 | #include <linux/i2c.h> |
35 | #include "dvb_frontend.h" | 35 | #include "dvb_frontend.h" |
36 | 36 | ||
37 | /** | 37 | #if defined(CONFIG_DVB_TUA6100) || defined(CONFIG_DVB_TUA6100_MODULE) |
38 | * Attach a tua6100 pll to the supplied frontend structure. | ||
39 | * | ||
40 | * @param fe Frontend to attach to. | ||
41 | * @param addr i2c address of the pll. | ||
42 | * @param i2c i2c adapter to use. | ||
43 | * @return FE pointer on success, NULL on failure. | ||
44 | */ | ||
45 | extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c); | 38 | extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c); |
39 | #else | ||
40 | static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) | ||
41 | { | ||
42 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
43 | return NULL; | ||
44 | } | ||
45 | #endif // CONFIG_DVB_TUA6100 | ||
46 | 46 | ||
47 | #endif | 47 | #endif |