diff options
Diffstat (limited to 'drivers/media/video/tuner-simple.h')
-rw-r--r-- | drivers/media/video/tuner-simple.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-simple.h b/drivers/media/video/tuner-simple.h index 75cd45b7145d..9089939a8c02 100644 --- a/drivers/media/video/tuner-simple.h +++ b/drivers/media/video/tuner-simple.h | |||
@@ -27,9 +27,20 @@ struct simple_tuner_config | |||
27 | struct tunertype *tun; | 27 | struct tunertype *tun; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | #if defined(CONFIG_TUNER_SIMPLE) || (defined(CONFIG_TUNER_SIMPLE_MODULE) && defined(MODULE)) | ||
30 | extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, | 31 | extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, |
31 | struct i2c_adapter *i2c_adap, | 32 | struct i2c_adapter *i2c_adap, |
32 | u8 i2c_addr, | 33 | u8 i2c_addr, |
33 | struct simple_tuner_config *cfg); | 34 | struct simple_tuner_config *cfg); |
35 | #else | ||
36 | static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, | ||
37 | struct i2c_adapter *i2c_adap, | ||
38 | u8 i2c_addr, | ||
39 | struct simple_tuner_config *cfg) | ||
40 | { | ||
41 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
42 | return NULL; | ||
43 | } | ||
44 | #endif | ||
34 | 45 | ||
35 | #endif /* __TUNER_SIMPLE_H__ */ | 46 | #endif /* __TUNER_SIMPLE_H__ */ |