diff options
Diffstat (limited to 'drivers/media/dvb/ttpci/budget-ci.c')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index eb03b140b05c..4b966eea3834 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -649,8 +649,8 @@ static int philips_su1278_tt_tuner_set_params(struct dvb_frontend *fe, | |||
649 | else if (params->frequency < 2150000) | 649 | else if (params->frequency < 2150000) |
650 | buf[3] |= 0xC0; | 650 | buf[3] |= 0xC0; |
651 | 651 | ||
652 | if (fe->ops->i2c_gate_ctrl) | 652 | if (fe->ops.i2c_gate_ctrl) |
653 | fe->ops->i2c_gate_ctrl(fe, 1); | 653 | fe->ops.i2c_gate_ctrl(fe, 1); |
654 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &msg, 1) != 1) | 654 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &msg, 1) != 1) |
655 | return -EIO; | 655 | return -EIO; |
656 | return 0; | 656 | return 0; |
@@ -680,8 +680,8 @@ static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe) | |||
680 | sizeof(td1316_init) }; | 680 | sizeof(td1316_init) }; |
681 | 681 | ||
682 | // setup PLL configuration | 682 | // setup PLL configuration |
683 | if (fe->ops->i2c_gate_ctrl) | 683 | if (fe->ops.i2c_gate_ctrl) |
684 | fe->ops->i2c_gate_ctrl(fe, 1); | 684 | fe->ops.i2c_gate_ctrl(fe, 1); |
685 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) | 685 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) |
686 | return -EIO; | 686 | return -EIO; |
687 | msleep(1); | 687 | msleep(1); |
@@ -690,11 +690,11 @@ static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe) | |||
690 | tuner_msg.addr = 0x65; | 690 | tuner_msg.addr = 0x65; |
691 | tuner_msg.buf = disable_mc44BC374c; | 691 | tuner_msg.buf = disable_mc44BC374c; |
692 | tuner_msg.len = sizeof(disable_mc44BC374c); | 692 | tuner_msg.len = sizeof(disable_mc44BC374c); |
693 | if (fe->ops->i2c_gate_ctrl) | 693 | if (fe->ops.i2c_gate_ctrl) |
694 | fe->ops->i2c_gate_ctrl(fe, 1); | 694 | fe->ops.i2c_gate_ctrl(fe, 1); |
695 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) { | 695 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) { |
696 | if (fe->ops->i2c_gate_ctrl) | 696 | if (fe->ops.i2c_gate_ctrl) |
697 | fe->ops->i2c_gate_ctrl(fe, 1); | 697 | fe->ops.i2c_gate_ctrl(fe, 1); |
698 | i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1); | 698 | i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1); |
699 | } | 699 | } |
700 | 700 | ||
@@ -777,8 +777,8 @@ static int philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe, struct dvb | |||
777 | tuner_buf[2] = 0xca; | 777 | tuner_buf[2] = 0xca; |
778 | tuner_buf[3] = (cp << 5) | (filter << 3) | band; | 778 | tuner_buf[3] = (cp << 5) | (filter << 3) | band; |
779 | 779 | ||
780 | if (fe->ops->i2c_gate_ctrl) | 780 | if (fe->ops.i2c_gate_ctrl) |
781 | fe->ops->i2c_gate_ctrl(fe, 1); | 781 | fe->ops.i2c_gate_ctrl(fe, 1); |
782 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) | 782 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) |
783 | return -EIO; | 783 | return -EIO; |
784 | 784 | ||
@@ -863,15 +863,15 @@ static int dvbc_philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe, struc | |||
863 | tuner_buf[3] = (cp << 5) | (filter << 3) | band; | 863 | tuner_buf[3] = (cp << 5) | (filter << 3) | band; |
864 | tuner_buf[4] = 0x80; | 864 | tuner_buf[4] = 0x80; |
865 | 865 | ||
866 | if (fe->ops->i2c_gate_ctrl) | 866 | if (fe->ops.i2c_gate_ctrl) |
867 | fe->ops->i2c_gate_ctrl(fe, 1); | 867 | fe->ops.i2c_gate_ctrl(fe, 1); |
868 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) | 868 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) |
869 | return -EIO; | 869 | return -EIO; |
870 | 870 | ||
871 | msleep(50); | 871 | msleep(50); |
872 | 872 | ||
873 | if (fe->ops->i2c_gate_ctrl) | 873 | if (fe->ops.i2c_gate_ctrl) |
874 | fe->ops->i2c_gate_ctrl(fe, 1); | 874 | fe->ops.i2c_gate_ctrl(fe, 1); |
875 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) | 875 | if (i2c_transfer(&budget_ci->budget.i2c_adap, &tuner_msg, 1) != 1) |
876 | return -EIO; | 876 | return -EIO; |
877 | 877 | ||
@@ -990,7 +990,7 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
990 | budget_ci->budget.dvb_frontend = | 990 | budget_ci->budget.dvb_frontend = |
991 | stv0299_attach(&alps_bsru6_config, &budget_ci->budget.i2c_adap); | 991 | stv0299_attach(&alps_bsru6_config, &budget_ci->budget.i2c_adap); |
992 | if (budget_ci->budget.dvb_frontend) { | 992 | if (budget_ci->budget.dvb_frontend) { |
993 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = alps_bsru6_tuner_set_params; | 993 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = alps_bsru6_tuner_set_params; |
994 | budget_ci->budget.dvb_frontend->tuner_priv = &budget_ci->budget.i2c_adap; | 994 | budget_ci->budget.dvb_frontend->tuner_priv = &budget_ci->budget.i2c_adap; |
995 | break; | 995 | break; |
996 | } | 996 | } |
@@ -1000,7 +1000,7 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1000 | budget_ci->budget.dvb_frontend = | 1000 | budget_ci->budget.dvb_frontend = |
1001 | stv0299_attach(&philips_su1278_tt_config, &budget_ci->budget.i2c_adap); | 1001 | stv0299_attach(&philips_su1278_tt_config, &budget_ci->budget.i2c_adap); |
1002 | if (budget_ci->budget.dvb_frontend) { | 1002 | if (budget_ci->budget.dvb_frontend) { |
1003 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = philips_su1278_tt_tuner_set_params; | 1003 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = philips_su1278_tt_tuner_set_params; |
1004 | break; | 1004 | break; |
1005 | } | 1005 | } |
1006 | break; | 1006 | break; |
@@ -1010,7 +1010,7 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1010 | budget_ci->budget.dvb_frontend = | 1010 | budget_ci->budget.dvb_frontend = |
1011 | stv0297_attach(&dvbc_philips_tdm1316l_config, &budget_ci->budget.i2c_adap); | 1011 | stv0297_attach(&dvbc_philips_tdm1316l_config, &budget_ci->budget.i2c_adap); |
1012 | if (budget_ci->budget.dvb_frontend) { | 1012 | if (budget_ci->budget.dvb_frontend) { |
1013 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = dvbc_philips_tdm1316l_tuner_set_params; | 1013 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = dvbc_philips_tdm1316l_tuner_set_params; |
1014 | break; | 1014 | break; |
1015 | } | 1015 | } |
1016 | break; | 1016 | break; |
@@ -1020,8 +1020,8 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1020 | budget_ci->budget.dvb_frontend = | 1020 | budget_ci->budget.dvb_frontend = |
1021 | tda10045_attach(&philips_tdm1316l_config, &budget_ci->budget.i2c_adap); | 1021 | tda10045_attach(&philips_tdm1316l_config, &budget_ci->budget.i2c_adap); |
1022 | if (budget_ci->budget.dvb_frontend) { | 1022 | if (budget_ci->budget.dvb_frontend) { |
1023 | budget_ci->budget.dvb_frontend->ops->tuner_ops.init = philips_tdm1316l_tuner_init; | 1023 | budget_ci->budget.dvb_frontend->ops.tuner_ops.init = philips_tdm1316l_tuner_init; |
1024 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = philips_tdm1316l_tuner_set_params; | 1024 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = philips_tdm1316l_tuner_set_params; |
1025 | break; | 1025 | break; |
1026 | } | 1026 | } |
1027 | break; | 1027 | break; |
@@ -1031,8 +1031,8 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1031 | budget_ci->budget.dvb_frontend = | 1031 | budget_ci->budget.dvb_frontend = |
1032 | tda10046_attach(&philips_tdm1316l_config, &budget_ci->budget.i2c_adap); | 1032 | tda10046_attach(&philips_tdm1316l_config, &budget_ci->budget.i2c_adap); |
1033 | if (budget_ci->budget.dvb_frontend) { | 1033 | if (budget_ci->budget.dvb_frontend) { |
1034 | budget_ci->budget.dvb_frontend->ops->tuner_ops.init = philips_tdm1316l_tuner_init; | 1034 | budget_ci->budget.dvb_frontend->ops.tuner_ops.init = philips_tdm1316l_tuner_init; |
1035 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = philips_tdm1316l_tuner_set_params; | 1035 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = philips_tdm1316l_tuner_set_params; |
1036 | break; | 1036 | break; |
1037 | } | 1037 | } |
1038 | break; | 1038 | break; |
@@ -1040,14 +1040,14 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1040 | case 0x1017: // TT S-1500 PCI | 1040 | case 0x1017: // TT S-1500 PCI |
1041 | budget_ci->budget.dvb_frontend = stv0299_attach(&alps_bsbe1_config, &budget_ci->budget.i2c_adap); | 1041 | budget_ci->budget.dvb_frontend = stv0299_attach(&alps_bsbe1_config, &budget_ci->budget.i2c_adap); |
1042 | if (budget_ci->budget.dvb_frontend) { | 1042 | if (budget_ci->budget.dvb_frontend) { |
1043 | budget_ci->budget.dvb_frontend->ops->tuner_ops.set_params = alps_bsbe1_tuner_set_params; | 1043 | budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = alps_bsbe1_tuner_set_params; |
1044 | budget_ci->budget.dvb_frontend->tuner_priv = &budget_ci->budget.i2c_adap; | 1044 | budget_ci->budget.dvb_frontend->tuner_priv = &budget_ci->budget.i2c_adap; |
1045 | 1045 | ||
1046 | budget_ci->budget.dvb_frontend->ops->dishnetwork_send_legacy_command = NULL; | 1046 | budget_ci->budget.dvb_frontend->ops.dishnetwork_send_legacy_command = NULL; |
1047 | if (lnbp21_attach(budget_ci->budget.dvb_frontend, &budget_ci->budget.i2c_adap, LNBP21_LLC, 0)) { | 1047 | if (lnbp21_attach(budget_ci->budget.dvb_frontend, &budget_ci->budget.i2c_adap, LNBP21_LLC, 0)) { |
1048 | printk("%s: No LNBP21 found!\n", __FUNCTION__); | 1048 | printk("%s: No LNBP21 found!\n", __FUNCTION__); |
1049 | if (budget_ci->budget.dvb_frontend->ops->release) | 1049 | if (budget_ci->budget.dvb_frontend->ops.release) |
1050 | budget_ci->budget.dvb_frontend->ops->release(budget_ci->budget.dvb_frontend); | 1050 | budget_ci->budget.dvb_frontend->ops.release(budget_ci->budget.dvb_frontend); |
1051 | budget_ci->budget.dvb_frontend = NULL; | 1051 | budget_ci->budget.dvb_frontend = NULL; |
1052 | } | 1052 | } |
1053 | } | 1053 | } |
@@ -1065,8 +1065,8 @@ static void frontend_init(struct budget_ci *budget_ci) | |||
1065 | if (dvb_register_frontend | 1065 | if (dvb_register_frontend |
1066 | (&budget_ci->budget.dvb_adapter, budget_ci->budget.dvb_frontend)) { | 1066 | (&budget_ci->budget.dvb_adapter, budget_ci->budget.dvb_frontend)) { |
1067 | printk("budget-ci: Frontend registration failed!\n"); | 1067 | printk("budget-ci: Frontend registration failed!\n"); |
1068 | if (budget_ci->budget.dvb_frontend->ops->release) | 1068 | if (budget_ci->budget.dvb_frontend->ops.release) |
1069 | budget_ci->budget.dvb_frontend->ops->release(budget_ci->budget.dvb_frontend); | 1069 | budget_ci->budget.dvb_frontend->ops.release(budget_ci->budget.dvb_frontend); |
1070 | budget_ci->budget.dvb_frontend = NULL; | 1070 | budget_ci->budget.dvb_frontend = NULL; |
1071 | } | 1071 | } |
1072 | } | 1072 | } |