diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-09 04:17:45 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-09 04:17:45 -0400 |
commit | 0a25b539c50f7fa125efebbad9f35d080ff55eb9 (patch) | |
tree | 6565334d5f272d11669804d486bc76ebac108884 /linux/drivers/media/dvb/frontends/tda826x.h | |
parent | fce444171fc73aa6b85d74abeee0dc45f0bf4c32 (diff) | |
download | mediapointer-dvb-s2-0a25b539c50f7fa125efebbad9f35d080ff55eb9.tar.gz mediapointer-dvb-s2-0a25b539c50f7fa125efebbad9f35d080ff55eb9.tar.bz2 |
tda826x: fix frontend selection for dvb_attach
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda826x.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda826x.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda826x.h b/linux/drivers/media/dvb/frontends/tda826x.h index 330760763..83998c001 100644 --- a/linux/drivers/media/dvb/frontends/tda826x.h +++ b/linux/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__ |