aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/or51132.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 16:47:10 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:58:52 -0400
commit44d92aa7817efa8f9f80f3bde2279221890a4cd2 (patch)
tree2c1b8714203a4503d609a5435e458e1ef6f84e82 /drivers/media/dvb/frontends/or51132.c
parent089e980939ae4f0ff14d1fe816885aa8f00c6e75 (diff)
V4L/DVB (3865): Convert or51132 to refactored tuner code
Convert to tuner_ops calls. Remove pll function pointers from structure. Remove dvb-pll code - done elsewhere now. 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/or51132.c')
-rw-r--r--drivers/media/dvb/frontends/or51132.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c
index c25ec73440e7..19f75e6ed829 100644
--- a/drivers/media/dvb/frontends/or51132.c
+++ b/drivers/media/dvb/frontends/or51132.c
@@ -331,7 +331,6 @@ static int or51132_set_parameters(struct dvb_frontend* fe,
331 struct dvb_frontend_parameters *param) 331 struct dvb_frontend_parameters *param)
332{ 332{
333 int ret; 333 int ret;
334 u8 buf[4];
335 struct or51132_state* state = fe->demodulator_priv; 334 struct or51132_state* state = fe->demodulator_priv;
336 const struct firmware *fw; 335 const struct firmware *fw;
337 const char *fwname; 336 const char *fwname;
@@ -384,13 +383,10 @@ static int or51132_set_parameters(struct dvb_frontend* fe,
384 or51132_setmode(fe); 383 or51132_setmode(fe);
385 } 384 }
386 385
387 dvb_pll_configure(state->config->pll_desc, buf, 386 if (fe->ops->tuner_ops.set_params) {
388 param->frequency, 0); 387 fe->ops->tuner_ops.set_params(fe, param);
389 dprintk("set_parameters tuner bytes: 0x%02x 0x%02x " 388 if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);
390 "0x%02x 0x%02x\n",buf[0],buf[1],buf[2],buf[3]); 389 }
391 if (i2c_writebytes(state, state->config->pll_address, buf, 4))
392 printk(KERN_WARNING "or51132: set_parameters error "
393 "writing to tuner\n");
394 390
395 /* Set to current mode */ 391 /* Set to current mode */
396 or51132_setmode(fe); 392 or51132_setmode(fe);