diff options
Diffstat (limited to 'drivers/media/dvb/frontends/cx22702.h')
| -rw-r--r-- | drivers/media/dvb/frontends/cx22702.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/cx22702.h b/drivers/media/dvb/frontends/cx22702.h index b1e465c6c2ce..f154e1f428eb 100644 --- a/drivers/media/dvb/frontends/cx22702.h +++ b/drivers/media/dvb/frontends/cx22702.h | |||
| @@ -30,8 +30,7 @@ | |||
| 30 | 30 | ||
| 31 | #include <linux/dvb/frontend.h> | 31 | #include <linux/dvb/frontend.h> |
| 32 | 32 | ||
| 33 | struct cx22702_config | 33 | struct cx22702_config { |
| 34 | { | ||
| 35 | /* the demodulator's i2c address */ | 34 | /* the demodulator's i2c address */ |
| 36 | u8 demod_address; | 35 | u8 demod_address; |
| 37 | 36 | ||
| @@ -41,16 +40,19 @@ struct cx22702_config | |||
| 41 | u8 output_mode; | 40 | u8 output_mode; |
| 42 | }; | 41 | }; |
| 43 | 42 | ||
| 44 | #if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) && defined(MODULE)) | 43 | #if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) \ |
| 45 | extern struct dvb_frontend* cx22702_attach(const struct cx22702_config* config, | 44 | && defined(MODULE)) |
| 46 | struct i2c_adapter* i2c); | 45 | extern struct dvb_frontend *cx22702_attach( |
| 46 | const struct cx22702_config *config, | ||
| 47 | struct i2c_adapter *i2c); | ||
| 47 | #else | 48 | #else |
| 48 | static inline struct dvb_frontend* cx22702_attach(const struct cx22702_config* config, | 49 | static inline struct dvb_frontend *cx22702_attach( |
| 49 | struct i2c_adapter* i2c) | 50 | const struct cx22702_config *config, |
| 51 | struct i2c_adapter *i2c) | ||
| 50 | { | 52 | { |
| 51 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 53 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 52 | return NULL; | 54 | return NULL; |
| 53 | } | 55 | } |
| 54 | #endif // CONFIG_DVB_CX22702 | 56 | #endif |
| 55 | 57 | ||
| 56 | #endif // CX22702_H | 58 | #endif |
