aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/bt832.c5
-rw-r--r--drivers/media/video/bttv-i2c.c6
-rw-r--r--drivers/media/video/cs53l32a.c4
-rw-r--r--drivers/media/video/cx25840/cx25840-core.c4
-rw-r--r--drivers/media/video/em28xx/em28xx-i2c.c2
-rw-r--r--drivers/media/video/msp3400.c4
-rw-r--r--drivers/media/video/saa6588.c10
-rw-r--r--drivers/media/video/saa7115.c4
-rw-r--r--drivers/media/video/saa7127.c4
-rw-r--r--drivers/media/video/saa7134/saa7134-i2c.c2
-rw-r--r--drivers/media/video/tda7432.c5
-rw-r--r--drivers/media/video/tda9875.c5
-rw-r--r--drivers/media/video/tda9887.c10
-rw-r--r--drivers/media/video/tvaudio.c9
-rw-r--r--drivers/media/video/tvmixer.c14
-rw-r--r--drivers/media/video/wm8775.c4
16 files changed, 0 insertions, 92 deletions
diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c
index 1c3ff5f38a6d..d2cb5ccff56b 100644
--- a/drivers/media/video/bt832.c
+++ b/drivers/media/video/bt832.c
@@ -183,13 +183,8 @@ static int bt832_attach(struct i2c_adapter *adap, int addr, int kind)
183 183
184static int bt832_probe(struct i2c_adapter *adap) 184static int bt832_probe(struct i2c_adapter *adap)
185{ 185{
186#ifdef I2C_CLASS_TV_ANALOG
187 if (adap->class & I2C_CLASS_TV_ANALOG) 186 if (adap->class & I2C_CLASS_TV_ANALOG)
188 return i2c_probe(adap, &addr_data, bt832_attach); 187 return i2c_probe(adap, &addr_data, bt832_attach);
189#else
190 if (adap->id == I2C_HW_B_BT848)
191 return i2c_probe(adap, &addr_data, bt832_attach);
192#endif
193 return 0; 188 return 0;
194} 189}
195 190
diff --git a/drivers/media/video/bttv-i2c.c b/drivers/media/video/bttv-i2c.c
index 8bb055de8d84..a8873f48c808 100644
--- a/drivers/media/video/bttv-i2c.c
+++ b/drivers/media/video/bttv-i2c.c
@@ -105,9 +105,7 @@ static struct i2c_algo_bit_data bttv_i2c_algo_bit_template = {
105 105
106static struct i2c_adapter bttv_i2c_adap_sw_template = { 106static struct i2c_adapter bttv_i2c_adap_sw_template = {
107 .owner = THIS_MODULE, 107 .owner = THIS_MODULE,
108#ifdef I2C_CLASS_TV_ANALOG
109 .class = I2C_CLASS_TV_ANALOG, 108 .class = I2C_CLASS_TV_ANALOG,
110#endif
111 .name = "bt848", 109 .name = "bt848",
112 .id = I2C_HW_B_BT848, 110 .id = I2C_HW_B_BT848,
113 .client_register = attach_inform, 111 .client_register = attach_inform,
@@ -276,9 +274,7 @@ static struct i2c_algorithm bttv_algo = {
276 274
277static struct i2c_adapter bttv_i2c_adap_hw_template = { 275static struct i2c_adapter bttv_i2c_adap_hw_template = {
278 .owner = THIS_MODULE, 276 .owner = THIS_MODULE,
279#ifdef I2C_CLASS_TV_ANALOG
280 .class = I2C_CLASS_TV_ANALOG, 277 .class = I2C_CLASS_TV_ANALOG,
281#endif
282 .name = "bt878", 278 .name = "bt878",
283 .id = I2C_HW_B_BT848 /* FIXME */, 279 .id = I2C_HW_B_BT848 /* FIXME */,
284 .algo = &bttv_algo, 280 .algo = &bttv_algo,
@@ -441,12 +437,10 @@ int __devinit init_bttv_i2c(struct bttv *btv)
441 i2c_set_adapdata(&btv->c.i2c_adap, btv); 437 i2c_set_adapdata(&btv->c.i2c_adap, btv);
442 btv->i2c_client.adapter = &btv->c.i2c_adap; 438 btv->i2c_client.adapter = &btv->c.i2c_adap;
443 439
444#ifdef I2C_CLASS_TV_ANALOG
445 if (bttv_tvcards[btv->c.type].no_video) 440 if (bttv_tvcards[btv->c.type].no_video)
446 btv->c.i2c_adap.class &= ~I2C_CLASS_TV_ANALOG; 441 btv->c.i2c_adap.class &= ~I2C_CLASS_TV_ANALOG;
447 if (bttv_tvcards[btv->c.type].has_dvb) 442 if (bttv_tvcards[btv->c.type].has_dvb)
448 btv->c.i2c_adap.class |= I2C_CLASS_TV_DIGITAL; 443 btv->c.i2c_adap.class |= I2C_CLASS_TV_DIGITAL;
449#endif
450 444
451 if (btv->use_i2c_hw) { 445 if (btv->use_i2c_hw) {
452 btv->i2c_rc = i2c_add_adapter(&btv->c.i2c_adap); 446 btv->i2c_rc = i2c_add_adapter(&btv->c.i2c_adap);
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c
index 643ead1a87ee..aa31b6736a7a 100644
--- a/drivers/media/video/cs53l32a.c
+++ b/drivers/media/video/cs53l32a.c
@@ -190,11 +190,7 @@ static int cs53l32a_attach(struct i2c_adapter *adapter, int address, int kind)
190 190
191static int cs53l32a_probe(struct i2c_adapter *adapter) 191static int cs53l32a_probe(struct i2c_adapter *adapter)
192{ 192{
193#ifdef I2C_CLASS_TV_ANALOG
194 if (adapter->class & I2C_CLASS_TV_ANALOG) 193 if (adapter->class & I2C_CLASS_TV_ANALOG)
195#else
196 if (adapter->id == I2C_HW_B_BT848)
197#endif
198 return i2c_probe(adapter, &addr_data, cs53l32a_attach); 194 return i2c_probe(adapter, &addr_data, cs53l32a_attach);
199 return 0; 195 return 0;
200} 196}
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c
index 3b09f46dddf6..54ffae686dc9 100644
--- a/drivers/media/video/cx25840/cx25840-core.c
+++ b/drivers/media/video/cx25840/cx25840-core.c
@@ -815,11 +815,7 @@ static int cx25840_detect_client(struct i2c_adapter *adapter, int address,
815 815
816static int cx25840_attach_adapter(struct i2c_adapter *adapter) 816static int cx25840_attach_adapter(struct i2c_adapter *adapter)
817{ 817{
818#ifdef I2C_CLASS_TV_ANALOG
819 if (adapter->class & I2C_CLASS_TV_ANALOG) 818 if (adapter->class & I2C_CLASS_TV_ANALOG)
820#else
821 if (adapter->id == I2C_HW_B_BT848)
822#endif
823 return i2c_probe(adapter, &addr_data, &cx25840_detect_client); 819 return i2c_probe(adapter, &addr_data, &cx25840_detect_client);
824 return 0; 820 return 0;
825} 821}
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c
index d14bcf4ceaea..5385338efbf4 100644
--- a/drivers/media/video/em28xx/em28xx-i2c.c
+++ b/drivers/media/video/em28xx/em28xx-i2c.c
@@ -486,9 +486,7 @@ static struct i2c_adapter em28xx_adap_template = {
486 .inc_use = inc_use, 486 .inc_use = inc_use,
487 .dec_use = dec_use, 487 .dec_use = dec_use,
488#endif 488#endif
489#ifdef I2C_CLASS_TV_ANALOG
490 .class = I2C_CLASS_TV_ANALOG, 489 .class = I2C_CLASS_TV_ANALOG,
491#endif
492 .name = "em28xx", 490 .name = "em28xx",
493 .id = I2C_HW_B_EM28XX, 491 .id = I2C_HW_B_EM28XX,
494 .algo = &em28xx_algo, 492 .algo = &em28xx_algo,
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c
index 546e3f0067fe..1bf0fb38b918 100644
--- a/drivers/media/video/msp3400.c
+++ b/drivers/media/video/msp3400.c
@@ -2336,13 +2336,9 @@ static int msp_detach(struct i2c_client *client)
2336 2336
2337static int msp_probe(struct i2c_adapter *adap) 2337static int msp_probe(struct i2c_adapter *adap)
2338{ 2338{
2339#ifdef I2C_CLASS_TV_ANALOG
2340 if (adap->class & I2C_CLASS_TV_ANALOG) 2339 if (adap->class & I2C_CLASS_TV_ANALOG)
2341 return i2c_probe(adap, &addr_data, msp_attach); 2340 return i2c_probe(adap, &addr_data, msp_attach);
2342 return 0; 2341 return 0;
2343#else
2344 return i2c_probe(adap, &addr_data, msp_attach);
2345#endif
2346} 2342}
2347 2343
2348static int __init msp3400_init_module(void) 2344static int __init msp3400_init_module(void)
diff --git a/drivers/media/video/saa6588.c b/drivers/media/video/saa6588.c
index d60a783e0473..ad582bd39819 100644
--- a/drivers/media/video/saa6588.c
+++ b/drivers/media/video/saa6588.c
@@ -427,18 +427,8 @@ static int saa6588_attach(struct i2c_adapter *adap, int addr, int kind)
427 427
428static int saa6588_probe(struct i2c_adapter *adap) 428static int saa6588_probe(struct i2c_adapter *adap)
429{ 429{
430#ifdef I2C_CLASS_TV_ANALOG
431 if (adap->class & I2C_CLASS_TV_ANALOG) 430 if (adap->class & I2C_CLASS_TV_ANALOG)
432 return i2c_probe(adap, &addr_data, saa6588_attach); 431 return i2c_probe(adap, &addr_data, saa6588_attach);
433#else
434 switch (adap->id) {
435 case I2C_HW_B_BT848:
436 case I2C_HW_B_RIVA:
437 case I2C_HW_SAA7134:
438 return i2c_probe(adap, &addr_data, saa6588_attach);
439 break;
440 }
441#endif
442 return 0; 432 return 0;
443} 433}
444 434
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c
index 29e28c742cd4..685ca1780c66 100644
--- a/drivers/media/video/saa7115.c
+++ b/drivers/media/video/saa7115.c
@@ -1326,11 +1326,7 @@ static int saa7115_attach(struct i2c_adapter *adapter, int address, int kind)
1326 1326
1327static int saa7115_probe(struct i2c_adapter *adapter) 1327static int saa7115_probe(struct i2c_adapter *adapter)
1328{ 1328{
1329#ifdef I2C_CLASS_TV_ANALOG
1330 if (adapter->class & I2C_CLASS_TV_ANALOG) 1329 if (adapter->class & I2C_CLASS_TV_ANALOG)
1331#else
1332 if (adapter->id == I2C_HW_B_BT848)
1333#endif
1334 return i2c_probe(adapter, &addr_data, &saa7115_attach); 1330 return i2c_probe(adapter, &addr_data, &saa7115_attach);
1335 return 0; 1331 return 0;
1336} 1332}
diff --git a/drivers/media/video/saa7127.c b/drivers/media/video/saa7127.c
index bca6ed0e2752..aee0f2d73da3 100644
--- a/drivers/media/video/saa7127.c
+++ b/drivers/media/video/saa7127.c
@@ -787,11 +787,7 @@ static int saa7127_attach(struct i2c_adapter *adapter, int address, int kind)
787 787
788static int saa7127_probe(struct i2c_adapter *adapter) 788static int saa7127_probe(struct i2c_adapter *adapter)
789{ 789{
790#ifdef I2C_CLASS_TV_ANALOG
791 if (adapter->class & I2C_CLASS_TV_ANALOG) 790 if (adapter->class & I2C_CLASS_TV_ANALOG)
792#else
793 if (adapter->id == I2C_HW_B_BT848)
794#endif
795 return i2c_probe(adapter, &addr_data, saa7127_attach); 791 return i2c_probe(adapter, &addr_data, saa7127_attach);
796 return 0; 792 return 0;
797} 793}
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c
index 1792d03d621d..7283caa0484b 100644
--- a/drivers/media/video/saa7134/saa7134-i2c.c
+++ b/drivers/media/video/saa7134/saa7134-i2c.c
@@ -390,9 +390,7 @@ static struct i2c_algorithm saa7134_algo = {
390 390
391static struct i2c_adapter saa7134_adap_template = { 391static struct i2c_adapter saa7134_adap_template = {
392 .owner = THIS_MODULE, 392 .owner = THIS_MODULE,
393#ifdef I2C_CLASS_TV_ANALOG
394 .class = I2C_CLASS_TV_ANALOG, 393 .class = I2C_CLASS_TV_ANALOG,
395#endif
396 .name = "saa7134", 394 .name = "saa7134",
397 .id = I2C_HW_SAA7134, 395 .id = I2C_HW_SAA7134,
398 .algo = &saa7134_algo, 396 .algo = &saa7134_algo,
diff --git a/drivers/media/video/tda7432.c b/drivers/media/video/tda7432.c
index 549c9929f107..3bd7dfb8cc7c 100644
--- a/drivers/media/video/tda7432.c
+++ b/drivers/media/video/tda7432.c
@@ -323,13 +323,8 @@ static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
323 323
324static int tda7432_probe(struct i2c_adapter *adap) 324static int tda7432_probe(struct i2c_adapter *adap)
325{ 325{
326#ifdef I2C_CLASS_TV_ANALOG
327 if (adap->class & I2C_CLASS_TV_ANALOG) 326 if (adap->class & I2C_CLASS_TV_ANALOG)
328 return i2c_probe(adap, &addr_data, tda7432_attach); 327 return i2c_probe(adap, &addr_data, tda7432_attach);
329#else
330 if (adap->id == I2C_HW_B_BT848)
331 return i2c_probe(adap, &addr_data, tda7432_attach);
332#endif
333 return 0; 328 return 0;
334} 329}
335 330
diff --git a/drivers/media/video/tda9875.c b/drivers/media/video/tda9875.c
index 9c3ecf7a0fed..760ec3c2ac67 100644
--- a/drivers/media/video/tda9875.c
+++ b/drivers/media/video/tda9875.c
@@ -257,13 +257,8 @@ static int tda9875_attach(struct i2c_adapter *adap, int addr, int kind)
257 257
258static int tda9875_probe(struct i2c_adapter *adap) 258static int tda9875_probe(struct i2c_adapter *adap)
259{ 259{
260#ifdef I2C_CLASS_TV_ANALOG
261 if (adap->class & I2C_CLASS_TV_ANALOG) 260 if (adap->class & I2C_CLASS_TV_ANALOG)
262 return i2c_probe(adap, &addr_data, tda9875_attach); 261 return i2c_probe(adap, &addr_data, tda9875_attach);
263#else
264 if (adap->id == I2C_HW_B_BT848)
265 return i2c_probe(adap, &addr_data, tda9875_attach);
266#endif
267 return 0; 262 return 0;
268} 263}
269 264
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index 32f133ed0b0b..9ae43a8cea52 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -714,18 +714,8 @@ static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
714 714
715static int tda9887_probe(struct i2c_adapter *adap) 715static int tda9887_probe(struct i2c_adapter *adap)
716{ 716{
717#ifdef I2C_CLASS_TV_ANALOG
718 if (adap->class & I2C_CLASS_TV_ANALOG) 717 if (adap->class & I2C_CLASS_TV_ANALOG)
719 return i2c_probe(adap, &addr_data, tda9887_attach); 718 return i2c_probe(adap, &addr_data, tda9887_attach);
720#else
721 switch (adap->id) {
722 case I2C_HW_B_BT848:
723 case I2C_HW_B_RIVA:
724 case I2C_HW_SAA7134:
725 return i2c_probe(adap, &addr_data, tda9887_attach);
726 break;
727 }
728#endif
729 return 0; 719 return 0;
730} 720}
731 721
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index 0292c5abf14a..19625e6410d1 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -1563,17 +1563,8 @@ static int chip_probe(struct i2c_adapter *adap)
1563 because dedicated drivers are used */ 1563 because dedicated drivers are used */
1564 if ((adap->id == I2C_HW_SAA7146)) 1564 if ((adap->id == I2C_HW_SAA7146))
1565 return 0; 1565 return 0;
1566#ifdef I2C_CLASS_TV_ANALOG
1567 if (adap->class & I2C_CLASS_TV_ANALOG) 1566 if (adap->class & I2C_CLASS_TV_ANALOG)
1568 return i2c_probe(adap, &addr_data, chip_attach); 1567 return i2c_probe(adap, &addr_data, chip_attach);
1569#else
1570 switch (adap->id) {
1571 case I2C_HW_B_BT848:
1572 case I2C_HW_B_RIVA:
1573 case I2C_HW_SAA7134:
1574 return i2c_probe(adap, &addr_data, chip_attach);
1575 }
1576#endif
1577 return 0; 1568 return 0;
1578} 1569}
1579 1570
diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c
index e837f9f7fed6..ce0da9c1a768 100644
--- a/drivers/media/video/tvmixer.c
+++ b/drivers/media/video/tvmixer.c
@@ -267,22 +267,8 @@ static int tvmixer_clients(struct i2c_client *client)
267 struct video_audio va; 267 struct video_audio va;
268 int i,minor; 268 int i,minor;
269 269
270#ifdef I2C_CLASS_TV_ANALOG
271 if (!(client->adapter->class & I2C_CLASS_TV_ANALOG)) 270 if (!(client->adapter->class & I2C_CLASS_TV_ANALOG))
272 return -1; 271 return -1;
273#else
274 /* TV card ??? */
275 switch (client->adapter->id) {
276 case I2C_HW_SMBUS_VOODOO3:
277 case I2C_HW_B_BT848:
278 case I2C_HW_B_RIVA:
279 /* ok, have a look ... */
280 break;
281 default:
282 /* ignore that one */
283 return -1;
284 }
285#endif
286 272
287 /* unregister ?? */ 273 /* unregister ?? */
288 for (i = 0; i < DEV_MAX; i++) { 274 for (i = 0; i < DEV_MAX; i++) {
diff --git a/drivers/media/video/wm8775.c b/drivers/media/video/wm8775.c
index bbfd55cd9948..3472f08e41fd 100644
--- a/drivers/media/video/wm8775.c
+++ b/drivers/media/video/wm8775.c
@@ -206,11 +206,7 @@ static int wm8775_attach(struct i2c_adapter *adapter, int address, int kind)
206 206
207static int wm8775_probe(struct i2c_adapter *adapter) 207static int wm8775_probe(struct i2c_adapter *adapter)
208{ 208{
209#ifdef I2C_CLASS_TV_ANALOG
210 if (adapter->class & I2C_CLASS_TV_ANALOG) 209 if (adapter->class & I2C_CLASS_TV_ANALOG)
211#else
212 if (adapter->id == I2C_HW_B_BT848)
213#endif
214 return i2c_probe(adapter, &addr_data, wm8775_attach); 210 return i2c_probe(adapter, &addr_data, wm8775_attach);
215 return 0; 211 return 0;
216} 212}