diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 21:47:11 +0100 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 21:47:11 +0100 |
commit | 2d1d22049e38a7b369d113ec29ec44d387236c5a (patch) | |
tree | d6409a4018bf8eb21c91fa60b9892ddd2c2bee28 /linux | |
parent | ff2297269dc60818ddbbf8e48bc4800c0eed9519 (diff) | |
download | mediapointer-dvb-s2-2d1d22049e38a7b369d113ec29ec44d387236c5a.tar.gz mediapointer-dvb-s2-2d1d22049e38a7b369d113ec29ec44d387236c5a.tar.bz2 |
Convert lgdt330x to refactored tuner code
From: Andrew de Quincey <adq_dvb@lidskialf.net>
Convert to tuner_ops calls.
Remove pll function pointers from structure.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt330x.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt330x.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c index 25ea3a838..cf1b0fefe 100644 --- a/linux/drivers/media/dvb/frontends/lgdt330x.c +++ b/linux/drivers/media/dvb/frontends/lgdt330x.c @@ -400,8 +400,10 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe, } /* Tune to the specified frequency */ - if (state->config->pll_set) - state->config->pll_set(fe, param); + if (fe->ops->tuner_ops.set_params) { + fe->ops->tuner_ops.set_params(fe, param); + if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0); + } /* Keep track of the new frequency */ /* FIXME this is the wrong way to do this... */ diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.h b/linux/drivers/media/dvb/frontends/lgdt330x.h index 2a6529ccc..bad903c6f 100644 --- a/linux/drivers/media/dvb/frontends/lgdt330x.h +++ b/linux/drivers/media/dvb/frontends/lgdt330x.h @@ -43,7 +43,6 @@ struct lgdt330x_config /* PLL interface */ int (*pll_rf_set) (struct dvb_frontend* fe, int index); - int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); /* Need to set device param for start_dma */ int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); |