aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-08-08 08:10:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:25 -0400
commit2bfe031df6bd5e3b8e503eba8e3b6461d7c2c27e (patch)
tree2d7288c2221fb6f7ef98ef7a1ee3fef3f04cf87e /drivers/media/video/saa7134
parentd995506062c974133ba66d0822e58a923d4d74d9 (diff)
V4L/DVB (4386): Convert DVB devices to use dvb_attach()
Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 2ffa5b5790ae..7bc3af7af50c 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -1057,7 +1057,7 @@ static int dvb_init(struct saa7134_dev *dev)
1057#ifdef HAVE_MT352 1057#ifdef HAVE_MT352
1058 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL: 1058 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
1059 printk("%s: pinnacle 300i dvb setup\n",dev->name); 1059 printk("%s: pinnacle 300i dvb setup\n",dev->name);
1060 dev->dvb.frontend = mt352_attach(&pinnacle_300i, 1060 dev->dvb.frontend = dvb_attach(mt352_attach, &pinnacle_300i,
1061 &dev->i2c_adap); 1061 &dev->i2c_adap);
1062 if (dev->dvb.frontend) { 1062 if (dev->dvb.frontend) {
1063 dev->dvb.frontend->ops.tuner_ops.set_params = mt352_pinnacle_tuner_set_params; 1063 dev->dvb.frontend->ops.tuner_ops.set_params = mt352_pinnacle_tuner_set_params;
@@ -1066,7 +1066,7 @@ static int dvb_init(struct saa7134_dev *dev)
1066 1066
1067 case SAA7134_BOARD_AVERMEDIA_777: 1067 case SAA7134_BOARD_AVERMEDIA_777:
1068 printk("%s: avertv 777 dvb setup\n",dev->name); 1068 printk("%s: avertv 777 dvb setup\n",dev->name);
1069 dev->dvb.frontend = mt352_attach(&avermedia_777, 1069 dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777,
1070 &dev->i2c_adap); 1070 &dev->i2c_adap);
1071 if (dev->dvb.frontend) { 1071 if (dev->dvb.frontend) {
1072 dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs; 1072 dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs;
@@ -1075,7 +1075,7 @@ static int dvb_init(struct saa7134_dev *dev)
1075#endif 1075#endif
1076#ifdef HAVE_TDA1004X 1076#ifdef HAVE_TDA1004X
1077 case SAA7134_BOARD_MD7134: 1077 case SAA7134_BOARD_MD7134:
1078 dev->dvb.frontend = tda10046_attach(&medion_cardbus, 1078 dev->dvb.frontend = dvb_attach(tda10046_attach, &medion_cardbus,
1079 &dev->i2c_adap); 1079 &dev->i2c_adap);
1080 if (dev->dvb.frontend) { 1080 if (dev->dvb.frontend) {
1081 dev->dvb.frontend->ops.tuner_ops.init = philips_fmd1216_tuner_init; 1081 dev->dvb.frontend->ops.tuner_ops.init = philips_fmd1216_tuner_init;
@@ -1084,7 +1084,7 @@ static int dvb_init(struct saa7134_dev *dev)
1084 } 1084 }
1085 break; 1085 break;
1086 case SAA7134_BOARD_PHILIPS_TOUGH: 1086 case SAA7134_BOARD_PHILIPS_TOUGH:
1087 dev->dvb.frontend = tda10046_attach(&philips_tu1216_60_config, 1087 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_tu1216_60_config,
1088 &dev->i2c_adap); 1088 &dev->i2c_adap);
1089 if (dev->dvb.frontend) { 1089 if (dev->dvb.frontend) {
1090 dev->dvb.frontend->ops.tuner_ops.init = philips_tu1216_tuner_60_init; 1090 dev->dvb.frontend->ops.tuner_ops.init = philips_tu1216_tuner_60_init;
@@ -1092,7 +1092,7 @@ static int dvb_init(struct saa7134_dev *dev)
1092 } 1092 }
1093 break; 1093 break;
1094 case SAA7134_BOARD_FLYDVBTDUO: 1094 case SAA7134_BOARD_FLYDVBTDUO:
1095 dev->dvb.frontend = tda10046_attach(&tda827x_lifeview_config, 1095 dev->dvb.frontend = dvb_attach(tda10046_attach, &tda827x_lifeview_config,
1096 &dev->i2c_adap); 1096 &dev->i2c_adap);
1097 if (dev->dvb.frontend) { 1097 if (dev->dvb.frontend) {
1098 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init; 1098 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init;
@@ -1101,7 +1101,7 @@ static int dvb_init(struct saa7134_dev *dev)
1101 } 1101 }
1102 break; 1102 break;
1103 case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS: 1103 case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
1104 dev->dvb.frontend = tda10046_attach(&tda827x_lifeview_config, 1104 dev->dvb.frontend = dvb_attach(tda10046_attach, &tda827x_lifeview_config,
1105 &dev->i2c_adap); 1105 &dev->i2c_adap);
1106 if (dev->dvb.frontend) { 1106 if (dev->dvb.frontend) {
1107 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init; 1107 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init;
@@ -1110,7 +1110,7 @@ static int dvb_init(struct saa7134_dev *dev)
1110 } 1110 }
1111 break; 1111 break;
1112 case SAA7134_BOARD_PHILIPS_EUROPA: 1112 case SAA7134_BOARD_PHILIPS_EUROPA:
1113 dev->dvb.frontend = tda10046_attach(&philips_europa_config, 1113 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_europa_config,
1114 &dev->i2c_adap); 1114 &dev->i2c_adap);
1115 if (dev->dvb.frontend) { 1115 if (dev->dvb.frontend) {
1116 dev->original_demod_sleep = dev->dvb.frontend->ops.sleep; 1116 dev->original_demod_sleep = dev->dvb.frontend->ops.sleep;
@@ -1121,7 +1121,7 @@ static int dvb_init(struct saa7134_dev *dev)
1121 } 1121 }
1122 break; 1122 break;
1123 case SAA7134_BOARD_VIDEOMATE_DVBT_300: 1123 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
1124 dev->dvb.frontend = tda10046_attach(&philips_europa_config, 1124 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_europa_config,
1125 &dev->i2c_adap); 1125 &dev->i2c_adap);
1126 if (dev->dvb.frontend) { 1126 if (dev->dvb.frontend) {
1127 dev->dvb.frontend->ops.tuner_ops.init = philips_europa_tuner_init; 1127 dev->dvb.frontend->ops.tuner_ops.init = philips_europa_tuner_init;
@@ -1130,7 +1130,7 @@ static int dvb_init(struct saa7134_dev *dev)
1130 } 1130 }
1131 break; 1131 break;
1132 case SAA7134_BOARD_VIDEOMATE_DVBT_200: 1132 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
1133 dev->dvb.frontend = tda10046_attach(&philips_tu1216_61_config, 1133 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_tu1216_61_config,
1134 &dev->i2c_adap); 1134 &dev->i2c_adap);
1135 if (dev->dvb.frontend) { 1135 if (dev->dvb.frontend) {
1136 dev->dvb.frontend->ops.tuner_ops.init = philips_tu1216_tuner_61_init; 1136 dev->dvb.frontend->ops.tuner_ops.init = philips_tu1216_tuner_61_init;
@@ -1138,7 +1138,7 @@ static int dvb_init(struct saa7134_dev *dev)
1138 } 1138 }
1139 break; 1139 break;
1140 case SAA7134_BOARD_PHILIPS_TIGER: 1140 case SAA7134_BOARD_PHILIPS_TIGER:
1141 dev->dvb.frontend = tda10046_attach(&philips_tiger_config, 1141 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_tiger_config,
1142 &dev->i2c_adap); 1142 &dev->i2c_adap);
1143 if (dev->dvb.frontend) { 1143 if (dev->dvb.frontend) {
1144 dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init; 1144 dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init;
@@ -1147,7 +1147,7 @@ static int dvb_init(struct saa7134_dev *dev)
1147 } 1147 }
1148 break; 1148 break;
1149 case SAA7134_BOARD_ASUSTeK_P7131_DUAL: 1149 case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
1150 dev->dvb.frontend = tda10046_attach(&philips_tiger_config, 1150 dev->dvb.frontend = dvb_attach(tda10046_attach, &philips_tiger_config,
1151 &dev->i2c_adap); 1151 &dev->i2c_adap);
1152 if (dev->dvb.frontend) { 1152 if (dev->dvb.frontend) {
1153 dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init; 1153 dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init;
@@ -1156,7 +1156,7 @@ static int dvb_init(struct saa7134_dev *dev)
1156 } 1156 }
1157 break; 1157 break;
1158 case SAA7134_BOARD_FLYDVBT_LR301: 1158 case SAA7134_BOARD_FLYDVBT_LR301:
1159 dev->dvb.frontend = tda10046_attach(&tda827x_lifeview_config, 1159 dev->dvb.frontend = dvb_attach(tda10046_attach, &tda827x_lifeview_config,
1160 &dev->i2c_adap); 1160 &dev->i2c_adap);
1161 if (dev->dvb.frontend) { 1161 if (dev->dvb.frontend) {
1162 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init; 1162 dev->dvb.frontend->ops.tuner_ops.init = philips_tda827x_tuner_init;
@@ -1165,7 +1165,7 @@ static int dvb_init(struct saa7134_dev *dev)
1165 } 1165 }
1166 break; 1166 break;
1167 case SAA7134_BOARD_FLYDVB_TRIO: 1167 case SAA7134_BOARD_FLYDVB_TRIO:
1168 dev->dvb.frontend = tda10046_attach(&lifeview_trio_config, 1168 dev->dvb.frontend = dvb_attach(tda10046_attach, &lifeview_trio_config,
1169 &dev->i2c_adap); 1169 &dev->i2c_adap);
1170 if (dev->dvb.frontend) { 1170 if (dev->dvb.frontend) {
1171 dev->dvb.frontend->ops.tuner_ops.sleep = lifeview_trio_tuner_sleep; 1171 dev->dvb.frontend->ops.tuner_ops.sleep = lifeview_trio_tuner_sleep;
@@ -1173,7 +1173,7 @@ static int dvb_init(struct saa7134_dev *dev)
1173 } 1173 }
1174 break; 1174 break;
1175 case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331: 1175 case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
1176 dev->dvb.frontend = tda10046_attach(&ads_tech_duo_config, 1176 dev->dvb.frontend = dvb_attach(tda10046_attach, &ads_tech_duo_config,
1177 &dev->i2c_adap); 1177 &dev->i2c_adap);
1178 if (dev->dvb.frontend) { 1178 if (dev->dvb.frontend) {
1179 dev->dvb.frontend->ops.tuner_ops.init = ads_duo_tuner_init; 1179 dev->dvb.frontend->ops.tuner_ops.init = ads_duo_tuner_init;
@@ -1182,7 +1182,7 @@ static int dvb_init(struct saa7134_dev *dev)
1182 } 1182 }
1183 break; 1183 break;
1184 case SAA7134_BOARD_TEVION_DVBT_220RF: 1184 case SAA7134_BOARD_TEVION_DVBT_220RF:
1185 dev->dvb.frontend = tda10046_attach(&tevion_dvbt220rf_config, 1185 dev->dvb.frontend = dvb_attach(tda10046_attach, &tevion_dvbt220rf_config,
1186 &dev->i2c_adap); 1186 &dev->i2c_adap);
1187 if (dev->dvb.frontend) { 1187 if (dev->dvb.frontend) {
1188 dev->dvb.frontend->ops.tuner_ops.sleep = tevion_dvb220rf_tuner_sleep; 1188 dev->dvb.frontend->ops.tuner_ops.sleep = tevion_dvb220rf_tuner_sleep;
@@ -1190,7 +1190,7 @@ static int dvb_init(struct saa7134_dev *dev)
1190 } 1190 }
1191 break; 1191 break;
1192 case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS: 1192 case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
1193 dev->dvb.frontend = tda10046_attach(&ads_tech_duo_config, 1193 dev->dvb.frontend = dvb_attach(tda10046_attach, &ads_tech_duo_config,
1194 &dev->i2c_adap); 1194 &dev->i2c_adap);
1195 if (dev->dvb.frontend) { 1195 if (dev->dvb.frontend) {
1196 dev->dvb.frontend->ops.tuner_ops.init = ads_duo_tuner_init; 1196 dev->dvb.frontend->ops.tuner_ops.init = ads_duo_tuner_init;
@@ -1210,15 +1210,15 @@ static int dvb_init(struct saa7134_dev *dev)
1210#endif 1210#endif
1211#ifdef HAVE_NXT200X 1211#ifdef HAVE_NXT200X
1212 case SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180: 1212 case SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180:
1213 dev->dvb.frontend = nxt200x_attach(&avertvhda180, &dev->i2c_adap); 1213 dev->dvb.frontend = dvb_attach(nxt200x_attach, &avertvhda180, &dev->i2c_adap);
1214 if (dev->dvb.frontend) { 1214 if (dev->dvb.frontend) {
1215 dvb_pll_attach(dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tdhu2); 1215 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tdhu2);
1216 } 1216 }
1217 break; 1217 break;
1218 case SAA7134_BOARD_KWORLD_ATSC110: 1218 case SAA7134_BOARD_KWORLD_ATSC110:
1219 dev->dvb.frontend = nxt200x_attach(&kworldatsc110, &dev->i2c_adap); 1219 dev->dvb.frontend = dvb_attach(nxt200x_attach, &kworldatsc110, &dev->i2c_adap);
1220 if (dev->dvb.frontend) { 1220 if (dev->dvb.frontend) {
1221 dvb_pll_attach(dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tuv1236d); 1221 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tuv1236d);
1222 } 1222 }
1223 break; 1223 break;
1224#endif 1224#endif