summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/dib3000mc.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 21:47:11 +0100
committerAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 21:47:11 +0100
commitff2297269dc60818ddbbf8e48bc4800c0eed9519 (patch)
tree2ac11e93f4cbd22cb32d2d5b55025e8ca7e00d07 /linux/drivers/media/dvb/frontends/dib3000mc.c
parente498804a03d7eb9e55b9ba2004df3a91906b0456 (diff)
downloadmediapointer-dvb-s2-ff2297269dc60818ddbbf8e48bc4800c0eed9519.tar.gz
mediapointer-dvb-s2-ff2297269dc60818ddbbf8e48bc4800c0eed9519.tar.bz2
Convert dib3000* to refactored tuner code
From: Andrew de Quincey <adq_dvb@lidskialf.net> 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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r--linux/drivers/media/dvb/frontends/dib3000mc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c
index 3b303dbb6..68a443b3d 100644
--- a/linux/drivers/media/dvb/frontends/dib3000mc.c
+++ b/linux/drivers/media/dvb/frontends/dib3000mc.c
@@ -462,8 +462,9 @@ static int dib3000mc_set_frontend(struct dvb_frontend* fe,
int search_state,auto_val;
u16 val;
- if (tuner && state->config.pll_set) { /* initial call from dvb */
- state->config.pll_set(fe,fep);
+ if (tuner && fe->ops->tuner_ops.set_params) { /* initial call from dvb */
+ fe->ops->tuner_ops.set_params(fe, fep);
+ if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);
state->last_tuned_freq = fep->frequency;
// if (!scanboost) {
@@ -642,9 +643,6 @@ static int dib3000mc_fe_init(struct dvb_frontend* fe, int mobile_mode)
set_or(DIB3000MC_REG_CLK_CFG_7,DIB3000MC_CLK_CFG_7_DIV_IN_OFF);
- if (state->config.pll_init)
- state->config.pll_init(fe);
-
deb_info("init end\n");
return 0;
}