diff options
Diffstat (limited to 'drivers/media/dvb/frontends/cx24116.h')
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/cx24116.h b/drivers/media/dvb/frontends/cx24116.h index 2b09e10872fd..4cb3ddd6c626 100644 --- a/drivers/media/dvb/frontends/cx24116.h +++ b/drivers/media/dvb/frontends/cx24116.h | |||
@@ -23,31 +23,32 @@ | |||
23 | 23 | ||
24 | #include <linux/dvb/frontend.h> | 24 | #include <linux/dvb/frontend.h> |
25 | 25 | ||
26 | struct cx24116_config | 26 | struct cx24116_config { |
27 | { | ||
28 | /* the demodulator's i2c address */ | 27 | /* the demodulator's i2c address */ |
29 | u8 demod_address; | 28 | u8 demod_address; |
30 | 29 | ||
31 | /* Need to set device param for start_dma */ | 30 | /* Need to set device param for start_dma */ |
32 | int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); | 31 | int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured); |
33 | 32 | ||
34 | /* Need to reset device during firmware loading */ | 33 | /* Need to reset device during firmware loading */ |
35 | int (*reset_device)(struct dvb_frontend* fe); | 34 | int (*reset_device)(struct dvb_frontend *fe); |
36 | 35 | ||
37 | /* Need to set MPEG parameters */ | 36 | /* Need to set MPEG parameters */ |
38 | u8 mpg_clk_pos_pol:0x02; | 37 | u8 mpg_clk_pos_pol:0x02; |
39 | }; | 38 | }; |
40 | 39 | ||
41 | #if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE) | 40 | #if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE) |
42 | extern struct dvb_frontend* cx24116_attach(const struct cx24116_config* config, | 41 | extern struct dvb_frontend *cx24116_attach( |
43 | struct i2c_adapter* i2c); | 42 | const struct cx24116_config *config, |
43 | struct i2c_adapter *i2c); | ||
44 | #else | 44 | #else |
45 | static inline struct dvb_frontend* cx24116_attach(const struct cx24116_config* config, | 45 | static inline struct dvb_frontend *cx24116_attach( |
46 | struct i2c_adapter* i2c) | 46 | const struct cx24116_config *config, |
47 | struct i2c_adapter *i2c) | ||
47 | { | 48 | { |
48 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 49 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
49 | return NULL; | 50 | return NULL; |
50 | } | 51 | } |
51 | #endif // CONFIG_DVB_CX24116 | 52 | #endif |
52 | 53 | ||
53 | #endif /* CX24116_H */ | 54 | #endif /* CX24116_H */ |