aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 16:47:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:58:57 -0400
commit02269f37727901e326adf52d61512e4f00c85597 (patch)
treee6f1555f63f9a848538cd7394ab92b6284e4991e /drivers/media/dvb/frontends
parent261143ff12eadbf17d7497cd471f70cacaca9586 (diff)
V4L/DVB (3871): Convert lgdt330x to refactored tuner code
Convert to tuner_ops calls. Remove pll function pointers from structure. 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/lgdt330x.c6
-rw-r--r--drivers/media/dvb/frontends/lgdt330x.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c
index 0c0a21c6030f..5deb6445aca5 100644
--- a/drivers/media/dvb/frontends/lgdt330x.c
+++ b/drivers/media/dvb/frontends/lgdt330x.c
@@ -400,8 +400,10 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
400 } 400 }
401 401
402 /* Tune to the specified frequency */ 402 /* Tune to the specified frequency */
403 if (state->config->pll_set) 403 if (fe->ops->tuner_ops.set_params) {
404 state->config->pll_set(fe, param); 404 fe->ops->tuner_ops.set_params(fe, param);
405 if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);
406 }
405 407
406 /* Keep track of the new frequency */ 408 /* Keep track of the new frequency */
407 /* FIXME this is the wrong way to do this... */ 409 /* FIXME this is the wrong way to do this... */
diff --git a/drivers/media/dvb/frontends/lgdt330x.h b/drivers/media/dvb/frontends/lgdt330x.h
index 2a6529cccf1a..bad903c6f0f8 100644
--- a/drivers/media/dvb/frontends/lgdt330x.h
+++ b/drivers/media/dvb/frontends/lgdt330x.h
@@ -43,7 +43,6 @@ struct lgdt330x_config
43 43
44 /* PLL interface */ 44 /* PLL interface */
45 int (*pll_rf_set) (struct dvb_frontend* fe, int index); 45 int (*pll_rf_set) (struct dvb_frontend* fe, int index);
46 int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
47 46
48 /* Need to set device param for start_dma */ 47 /* Need to set device param for start_dma */
49 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); 48 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);