diff options
Diffstat (limited to 'drivers/media/dvb/frontends/cx24123.h')
-rw-r--r-- | drivers/media/dvb/frontends/cx24123.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.h b/drivers/media/dvb/frontends/cx24123.h index 9606f825935c..57a1dae1dc40 100644 --- a/drivers/media/dvb/frontends/cx24123.h +++ b/drivers/media/dvb/frontends/cx24123.h | |||
@@ -30,9 +30,21 @@ struct cx24123_config | |||
30 | 30 | ||
31 | /* Need to set device param for start_dma */ | 31 | /* Need to set device param for start_dma */ |
32 | int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); | 32 | int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); |
33 | |||
34 | /* 0 = LNB voltage normal, 1 = LNB voltage inverted */ | ||
35 | int lnb_polarity; | ||
33 | }; | 36 | }; |
34 | 37 | ||
38 | #if defined(CONFIG_DVB_CX24123) || defined(CONFIG_DVB_CX24123_MODULE) | ||
35 | extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | 39 | extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, |
36 | struct i2c_adapter* i2c); | 40 | struct i2c_adapter* i2c); |
41 | #else | ||
42 | static inline struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | ||
43 | struct i2c_adapter* i2c) | ||
44 | { | ||
45 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
46 | return NULL; | ||
47 | } | ||
48 | #endif // CONFIG_DVB_CX24123 | ||
37 | 49 | ||
38 | #endif /* CX24123_H */ | 50 | #endif /* CX24123_H */ |