]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3884): Convert dibusb* to refactored tuner code
authorAndrew de Quincey <adq_dvb@lidskialf.net>
Tue, 18 Apr 2006 20:47:12 +0000 (17:47 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 04:59:13 +0000 (01:59 -0300)
Hook tuner call into tuner_ops.

Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dibusb-common.c
drivers/media/dvb/dvb-usb/dibusb-mb.c

index 2d52b76671d35a729eea31b3bb16cf3f50b97953..b0435c8f82fd076b1da39f74ed55c6ea642e6002 100644 (file)
@@ -173,8 +173,8 @@ int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d)
        struct dib3000_config demod_cfg;
        struct dibusb_state *st = d->priv;
 
-       demod_cfg.pll_set = dvb_usb_pll_set_i2c;
-       demod_cfg.pll_init = dvb_usb_pll_init_i2c;
+       d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
+       d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
 
        for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++)
                if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) {
index dd5a131958862a8bd7090dc2328c81fc499bfc1a..def0c111ce0a6605dc042f99182da18586a4403d 100644 (file)
@@ -20,8 +20,8 @@ static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_device *d)
        struct dibusb_state *st = d->priv;
 
        demod_cfg.demod_address = 0x8;
-       demod_cfg.pll_set = dvb_usb_pll_set_i2c;
-       demod_cfg.pll_init = dvb_usb_pll_init_i2c;
+       d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
+       d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
 
        if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL)
                return -ENODEV;