Commit 02269f37 authored by Andrew de Quincey's avatar Andrew de Quincey Committed by Mauro Carvalho Chehab

V4L/DVB (3871): Convert lgdt330x to refactored tuner code

Convert to tuner_ops calls.
Remove pll function pointers from structure.
Signed-off-by: default avatarAndrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 261143ff
...@@ -400,8 +400,10 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe, ...@@ -400,8 +400,10 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
} }
/* Tune to the specified frequency */ /* Tune to the specified frequency */
if (state->config->pll_set) if (fe->ops->tuner_ops.set_params) {
state->config->pll_set(fe, param); 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 */ /* Keep track of the new frequency */
/* FIXME this is the wrong way to do this... */ /* FIXME this is the wrong way to do this... */
......
...@@ -43,7 +43,6 @@ struct lgdt330x_config ...@@ -43,7 +43,6 @@ struct lgdt330x_config
/* PLL interface */ /* PLL interface */
int (*pll_rf_set) (struct dvb_frontend* fe, int index); 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 */ /* Need to set device param for start_dma */
int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment