diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-08 14:48:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:41 -0400 |
commit | e4d6c1f74aaac1bbe5be50e7368e5ac99d54e5a2 (patch) | |
tree | df1106a211770b6c5c13ae32703cece73ef0e6fe /drivers/media/dvb/frontends/dib3000.h | |
parent | a16bf5d5603184dc1db88f37051881b2eeacfd17 (diff) |
V4L/DVB: Cleanups for mt2060-integration
- some coding style fixes for newly added mt2060
- moved agc-config from fixed values in dib3000mc to configurable ones
- whitespace clean-ups for usb-id-file
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000.h')
-rw-r--r-- | drivers/media/dvb/frontends/dib3000.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/drivers/media/dvb/frontends/dib3000.h b/drivers/media/dvb/frontends/dib3000.h index d2ab7479012a..bd0e663cf6f3 100644 --- a/drivers/media/dvb/frontends/dib3000.h +++ b/drivers/media/dvb/frontends/dib3000.h | |||
@@ -26,10 +26,20 @@ | |||
26 | 26 | ||
27 | #include <linux/dvb/frontend.h> | 27 | #include <linux/dvb/frontend.h> |
28 | 28 | ||
29 | struct dib3000p_agc_config { | ||
30 | u16 val[12]; | ||
31 | }; | ||
32 | |||
29 | struct dib3000_config | 33 | struct dib3000_config |
30 | { | 34 | { |
31 | /* the demodulator's i2c address */ | 35 | /* the demodulator's i2c address */ |
32 | u8 demod_address; | 36 | u8 demod_address; |
37 | |||
38 | const struct dib3000p_agc_config *agc; | ||
39 | |||
40 | /* PLL maintenance and the i2c address of the PLL */ | ||
41 | int (*pll_init)(struct dvb_frontend *fe); | ||
42 | int (*pll_set)(struct dvb_frontend *fe, struct dvb_frontend_parameters* params); | ||
33 | }; | 43 | }; |
34 | 44 | ||
35 | struct dib_fe_xfer_ops | 45 | struct dib_fe_xfer_ops |
@@ -41,28 +51,11 @@ struct dib_fe_xfer_ops | |||
41 | int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl); | 51 | int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl); |
42 | }; | 52 | }; |
43 | 53 | ||
44 | #if defined(CONFIG_DVB_DIB3000MB) || defined(CONFIG_DVB_DIB3000MB_MODULE) | ||
45 | extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config, | 54 | extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config, |
46 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops); | 55 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops); |
47 | #else | ||
48 | static inline struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config, | ||
49 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops) | ||
50 | { | ||
51 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
52 | return NULL; | ||
53 | } | ||
54 | #endif // CONFIG_DVB_DIB3000MB | ||
55 | 56 | ||
56 | #if defined(CONFIG_DVB_DIB3000MC) || defined(CONFIG_DVB_DIB3000MC_MODULE) | ||
57 | extern struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | 57 | extern struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, |
58 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops); | 58 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops); |
59 | #else | ||
60 | static inline struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | ||
61 | struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops) | ||
62 | { | ||
63 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
64 | return NULL; | ||
65 | } | ||
66 | #endif // CONFIG_DVB_DIB3000MC | ||
67 | 59 | ||
60 | extern int dib3000mc_set_agc_config(struct dvb_frontend *fe, const struct dib3000p_agc_config *agc); | ||
68 | #endif // DIB3000_H | 61 | #endif // DIB3000_H |