diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 16:47:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:59:13 -0400 |
commit | a263394b4866a89860d7b5dbcacf33a32f00d206 (patch) | |
tree | b4363628f63be84cdf2f11fc5f1c734f6019c7df | |
parent | aac9ee95ad655593b5b7438714be5a485dc7cb73 (diff) |
V4L/DVB (3884): Convert dibusb* to refactored tuner code
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>
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-common.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-mb.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c index 2d52b76671d3..b0435c8f82fd 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-common.c +++ b/drivers/media/dvb/dvb-usb/dibusb-common.c | |||
@@ -173,8 +173,8 @@ int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d) | |||
173 | struct dib3000_config demod_cfg; | 173 | struct dib3000_config demod_cfg; |
174 | struct dibusb_state *st = d->priv; | 174 | struct dibusb_state *st = d->priv; |
175 | 175 | ||
176 | demod_cfg.pll_set = dvb_usb_pll_set_i2c; | 176 | d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c; |
177 | demod_cfg.pll_init = dvb_usb_pll_init_i2c; | 177 | d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c; |
178 | 178 | ||
179 | for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++) | 179 | for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++) |
180 | if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) { | 180 | if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) { |
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mb.c b/drivers/media/dvb/dvb-usb/dibusb-mb.c index dd5a13195886..def0c111ce0a 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mb.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mb.c | |||
@@ -20,8 +20,8 @@ static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_device *d) | |||
20 | struct dibusb_state *st = d->priv; | 20 | struct dibusb_state *st = d->priv; |
21 | 21 | ||
22 | demod_cfg.demod_address = 0x8; | 22 | demod_cfg.demod_address = 0x8; |
23 | demod_cfg.pll_set = dvb_usb_pll_set_i2c; | 23 | d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c; |
24 | demod_cfg.pll_init = dvb_usb_pll_init_i2c; | 24 | d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c; |
25 | 25 | ||
26 | if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL) | 26 | if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL) |
27 | return -ENODEV; | 27 | return -ENODEV; |