]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (3871): Convert lgdt330x to refactored tuner code
authorAndrew de Quincey <adq_dvb@lidskialf.net>
Tue, 18 Apr 2006 20:47:11 +0000 (17:47 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 04:58:57 +0000 (01:58 -0300)
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>
drivers/media/dvb/frontends/lgdt330x.c
drivers/media/dvb/frontends/lgdt330x.h

index 0c0a21c6030fad675a03d6476751c0cd940cc549..5deb6445aca541d5e663daf699c47a2e8e7190e2 100644 (file)
@@ -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...           */
index 2a6529cccf1afe59a1c5204b76c30dab1dc676e3..bad903c6f0f8261111a6b1d2b7dfe3bdbabb9325 100644 (file)
@@ -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);