diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 16:47:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:58:38 -0400 |
commit | 58b119e8a94e2f734cd3e43d1225281ed2d47c11 (patch) | |
tree | ad71844263c0a9955ae146549d61176729f077d9 /drivers/media/dvb/frontends | |
parent | d21eac0385dd11d3118ffd374451916fa413c0df (diff) |
V4L/DVB (3853): Convert ves1820 to refactored tuner code
Convert to tuner_ops calls.
Remove pll function pointers from structure.
Remove unneeded tuner calls.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/ves1820.c | 9 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/ves1820.h | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/ves1820.c b/drivers/media/dvb/frontends/ves1820.c index ad8647a3c85e..9810e2dcbbec 100644 --- a/drivers/media/dvb/frontends/ves1820.c +++ b/drivers/media/dvb/frontends/ves1820.c | |||
@@ -204,9 +204,6 @@ static int ves1820_init(struct dvb_frontend* fe) | |||
204 | 204 | ||
205 | ves1820_writereg(state, 0x34, state->pwm); | 205 | ves1820_writereg(state, 0x34, state->pwm); |
206 | 206 | ||
207 | if (state->config->pll_init) | ||
208 | state->config->pll_init(fe); | ||
209 | |||
210 | return 0; | 207 | return 0; |
211 | } | 208 | } |
212 | 209 | ||
@@ -223,7 +220,11 @@ static int ves1820_set_parameters(struct dvb_frontend* fe, struct dvb_frontend_p | |||
223 | if (real_qam < 0 || real_qam > 4) | 220 | if (real_qam < 0 || real_qam > 4) |
224 | return -EINVAL; | 221 | return -EINVAL; |
225 | 222 | ||
226 | state->config->pll_set(fe, p); | 223 | if (fe->ops->tuner_ops.set_params) { |
224 | fe->ops->tuner_ops.set_params(fe, p); | ||
225 | if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0); | ||
226 | } | ||
227 | |||
227 | ves1820_set_symbolrate(state, p->u.qam.symbol_rate); | 228 | ves1820_set_symbolrate(state, p->u.qam.symbol_rate); |
228 | ves1820_writereg(state, 0x34, state->pwm); | 229 | ves1820_writereg(state, 0x34, state->pwm); |
229 | 230 | ||
diff --git a/drivers/media/dvb/frontends/ves1820.h b/drivers/media/dvb/frontends/ves1820.h index 355f130b1be8..520f09522fbb 100644 --- a/drivers/media/dvb/frontends/ves1820.h +++ b/drivers/media/dvb/frontends/ves1820.h | |||
@@ -39,10 +39,6 @@ struct ves1820_config | |||
39 | 39 | ||
40 | /* SELAGC control */ | 40 | /* SELAGC control */ |
41 | u8 selagc:1; | 41 | u8 selagc:1; |
42 | |||
43 | /* PLL maintenance */ | ||
44 | int (*pll_init)(struct dvb_frontend* fe); | ||
45 | int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); | ||
46 | }; | 42 | }; |
47 | 43 | ||
48 | extern struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, | 44 | extern struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, |