diff options
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 09e18296b3ca..b715b972d2fc 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -300,8 +300,8 @@ static int microtune_mt7202dtf_tuner_set_params(struct dvb_frontend* fe, struct | |||
300 | data[2] = ((div >> 10) & 0x60) | cfg; | 300 | data[2] = ((div >> 10) & 0x60) | cfg; |
301 | data[3] = (cpump << 6) | band_select; | 301 | data[3] = (cpump << 6) | band_select; |
302 | 302 | ||
303 | if (fe->ops->i2c_gate_ctrl) | 303 | if (fe->ops.i2c_gate_ctrl) |
304 | fe->ops->i2c_gate_ctrl(fe, 1); | 304 | fe->ops.i2c_gate_ctrl(fe, 1); |
305 | i2c_transfer(card->i2c_adapter, &msg, 1); | 305 | i2c_transfer(card->i2c_adapter, &msg, 1); |
306 | return (div * 166666 - 36000000); | 306 | return (div * 166666 - 36000000); |
307 | } | 307 | } |
@@ -483,8 +483,8 @@ static int vp3021_alps_tded4_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
483 | else | 483 | else |
484 | return -EINVAL; | 484 | return -EINVAL; |
485 | 485 | ||
486 | if (fe->ops->i2c_gate_ctrl) | 486 | if (fe->ops.i2c_gate_ctrl) |
487 | fe->ops->i2c_gate_ctrl(fe, 1); | 487 | fe->ops.i2c_gate_ctrl(fe, 1); |
488 | i2c_transfer(card->i2c_adapter, &msg, 1); | 488 | i2c_transfer(card->i2c_adapter, &msg, 1); |
489 | return 0; | 489 | return 0; |
490 | } | 490 | } |
@@ -607,9 +607,9 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
607 | card->i2c_adapter); | 607 | card->i2c_adapter); |
608 | 608 | ||
609 | if (card->fe != NULL) { | 609 | if (card->fe != NULL) { |
610 | card->fe->ops->tuner_ops.calc_regs = thomson_dtt7579_tuner_calc_regs; | 610 | card->fe->ops.tuner_ops.calc_regs = thomson_dtt7579_tuner_calc_regs; |
611 | card->fe->ops->info.frequency_min = 174000000; | 611 | card->fe->ops.info.frequency_min = 174000000; |
612 | card->fe->ops->info.frequency_max = 862000000; | 612 | card->fe->ops.info.frequency_max = 862000000; |
613 | } | 613 | } |
614 | break; | 614 | break; |
615 | 615 | ||
@@ -617,7 +617,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
617 | lgdt330x_reset(card); | 617 | lgdt330x_reset(card); |
618 | card->fe = lgdt330x_attach(&tdvs_tua6034_config, card->i2c_adapter); | 618 | card->fe = lgdt330x_attach(&tdvs_tua6034_config, card->i2c_adapter); |
619 | if (card->fe != NULL) { | 619 | if (card->fe != NULL) { |
620 | card->fe->ops->tuner_ops.set_params = tdvs_tua6034_tuner_set_params; | 620 | card->fe->ops.tuner_ops.set_params = tdvs_tua6034_tuner_set_params; |
621 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); | 621 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); |
622 | } | 622 | } |
623 | break; | 623 | break; |
@@ -632,7 +632,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
632 | digitv_alps_tded4_reset(card); | 632 | digitv_alps_tded4_reset(card); |
633 | card->fe = nxt6000_attach(&vp3021_alps_tded4_config, card->i2c_adapter); | 633 | card->fe = nxt6000_attach(&vp3021_alps_tded4_config, card->i2c_adapter); |
634 | if (card->fe != NULL) { | 634 | if (card->fe != NULL) { |
635 | card->fe->ops->tuner_ops.set_params = vp3021_alps_tded4_tuner_set_params; | 635 | card->fe->ops.tuner_ops.set_params = vp3021_alps_tded4_tuner_set_params; |
636 | dprintk ("dvb_bt8xx: an nxt6000 was detected on your digitv card\n"); | 636 | dprintk ("dvb_bt8xx: an nxt6000 was detected on your digitv card\n"); |
637 | break; | 637 | break; |
638 | } | 638 | } |
@@ -642,7 +642,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
642 | card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter); | 642 | card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter); |
643 | 643 | ||
644 | if (card->fe != NULL) { | 644 | if (card->fe != NULL) { |
645 | card->fe->ops->tuner_ops.calc_regs = digitv_alps_tded4_tuner_calc_regs; | 645 | card->fe->ops.tuner_ops.calc_regs = digitv_alps_tded4_tuner_calc_regs; |
646 | dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n"); | 646 | dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n"); |
647 | } | 647 | } |
648 | break; | 648 | break; |
@@ -650,16 +650,16 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
650 | case BTTV_BOARD_AVDVBT_761: | 650 | case BTTV_BOARD_AVDVBT_761: |
651 | card->fe = sp887x_attach(µtune_mt7202dtf_config, card->i2c_adapter); | 651 | card->fe = sp887x_attach(µtune_mt7202dtf_config, card->i2c_adapter); |
652 | if (card->fe) { | 652 | if (card->fe) { |
653 | card->fe->ops->tuner_ops.set_params = microtune_mt7202dtf_tuner_set_params; | 653 | card->fe->ops.tuner_ops.set_params = microtune_mt7202dtf_tuner_set_params; |
654 | } | 654 | } |
655 | break; | 655 | break; |
656 | 656 | ||
657 | case BTTV_BOARD_AVDVBT_771: | 657 | case BTTV_BOARD_AVDVBT_771: |
658 | card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); | 658 | card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); |
659 | if (card->fe != NULL) { | 659 | if (card->fe != NULL) { |
660 | card->fe->ops->tuner_ops.calc_regs = advbt771_samsung_tdtc9251dh0_tuner_calc_regs; | 660 | card->fe->ops.tuner_ops.calc_regs = advbt771_samsung_tdtc9251dh0_tuner_calc_regs; |
661 | card->fe->ops->info.frequency_min = 174000000; | 661 | card->fe->ops.info.frequency_min = 174000000; |
662 | card->fe->ops->info.frequency_max = 862000000; | 662 | card->fe->ops.info.frequency_max = 862000000; |
663 | } | 663 | } |
664 | break; | 664 | break; |
665 | 665 | ||
@@ -687,9 +687,9 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
687 | case BTTV_BOARD_PINNACLESAT: | 687 | case BTTV_BOARD_PINNACLESAT: |
688 | card->fe = cx24110_attach(&pctvsat_config, card->i2c_adapter); | 688 | card->fe = cx24110_attach(&pctvsat_config, card->i2c_adapter); |
689 | if (card->fe) { | 689 | if (card->fe) { |
690 | card->fe->ops->tuner_ops.init = pinnsat_tuner_init; | 690 | card->fe->ops.tuner_ops.init = pinnsat_tuner_init; |
691 | card->fe->ops->tuner_ops.sleep = pinnsat_tuner_sleep; | 691 | card->fe->ops.tuner_ops.sleep = pinnsat_tuner_sleep; |
692 | card->fe->ops->tuner_ops.set_params = cx24108_tuner_set_params; | 692 | card->fe->ops.tuner_ops.set_params = cx24108_tuner_set_params; |
693 | } | 693 | } |
694 | break; | 694 | break; |
695 | 695 | ||
@@ -707,8 +707,8 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
707 | else | 707 | else |
708 | if (dvb_register_frontend(&card->dvb_adapter, card->fe)) { | 708 | if (dvb_register_frontend(&card->dvb_adapter, card->fe)) { |
709 | printk("dvb-bt8xx: Frontend registration failed!\n"); | 709 | printk("dvb-bt8xx: Frontend registration failed!\n"); |
710 | if (card->fe->ops->release) | 710 | if (card->fe->ops.release) |
711 | card->fe->ops->release(card->fe); | 711 | card->fe->ops.release(card->fe); |
712 | card->fe = NULL; | 712 | card->fe = NULL; |
713 | } | 713 | } |
714 | } | 714 | } |