]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3123a): remove uneeded #if from V4L subsystem
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:20 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:20 +0000 (15:25 -0200)
- some uneeded #if were introduced by a previous patch.
  this patch removes these.

Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
16 files changed:
drivers/media/video/bt832.c
drivers/media/video/bttv-i2c.c
drivers/media/video/cs53l32a.c
drivers/media/video/cx25840/cx25840-core.c
drivers/media/video/em28xx/em28xx-i2c.c
drivers/media/video/msp3400.c
drivers/media/video/saa6588.c
drivers/media/video/saa7115.c
drivers/media/video/saa7127.c
drivers/media/video/saa7134/saa7134-i2c.c
drivers/media/video/tda7432.c
drivers/media/video/tda9875.c
drivers/media/video/tda9887.c
drivers/media/video/tvaudio.c
drivers/media/video/tvmixer.c
drivers/media/video/wm8775.c

index 1c3ff5f38a6d4e70d763330ee547396ec828429e..d2cb5ccff56b6935a758945cfa3aae2d34caeac8 100644 (file)
@@ -183,13 +183,8 @@ static int bt832_attach(struct i2c_adapter *adap, int addr, int kind)
 
 static int bt832_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, bt832_attach);
-#else
-       if (adap->id == I2C_HW_B_BT848)
-               return i2c_probe(adap, &addr_data, bt832_attach);
-#endif
        return 0;
 }
 
index 8bb055de8d84c65e78a3916ecf3a049ea375c6a9..a8873f48c808aedcb05bb8d65a7e1ebf18b42b16 100644 (file)
@@ -105,9 +105,7 @@ static struct i2c_algo_bit_data bttv_i2c_algo_bit_template = {
 
 static struct i2c_adapter bttv_i2c_adap_sw_template = {
        .owner             = THIS_MODULE,
-#ifdef I2C_CLASS_TV_ANALOG
        .class             = I2C_CLASS_TV_ANALOG,
-#endif
        .name              = "bt848",
        .id                = I2C_HW_B_BT848,
        .client_register   = attach_inform,
@@ -276,9 +274,7 @@ static struct i2c_algorithm bttv_algo = {
 
 static struct i2c_adapter bttv_i2c_adap_hw_template = {
        .owner         = THIS_MODULE,
-#ifdef I2C_CLASS_TV_ANALOG
        .class         = I2C_CLASS_TV_ANALOG,
-#endif
        .name          = "bt878",
        .id            = I2C_HW_B_BT848 /* FIXME */,
        .algo          = &bttv_algo,
@@ -441,12 +437,10 @@ int __devinit init_bttv_i2c(struct bttv *btv)
        i2c_set_adapdata(&btv->c.i2c_adap, btv);
        btv->i2c_client.adapter = &btv->c.i2c_adap;
 
-#ifdef I2C_CLASS_TV_ANALOG
        if (bttv_tvcards[btv->c.type].no_video)
                btv->c.i2c_adap.class &= ~I2C_CLASS_TV_ANALOG;
        if (bttv_tvcards[btv->c.type].has_dvb)
                btv->c.i2c_adap.class |= I2C_CLASS_TV_DIGITAL;
-#endif
 
        if (btv->use_i2c_hw) {
                btv->i2c_rc = i2c_add_adapter(&btv->c.i2c_adap);
index 643ead1a87eea504324110193e5b5daf35fce6d2..aa31b6736a7aca73a4e446040ae8d0a696d9ea59 100644 (file)
@@ -190,11 +190,7 @@ static int cs53l32a_attach(struct i2c_adapter *adapter, int address, int kind)
 
 static int cs53l32a_probe(struct i2c_adapter *adapter)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adapter->class & I2C_CLASS_TV_ANALOG)
-#else
-       if (adapter->id == I2C_HW_B_BT848)
-#endif
                return i2c_probe(adapter, &addr_data, cs53l32a_attach);
        return 0;
 }
index 3b09f46dddf68028fab1f486954897df846fce1d..54ffae686dc95fae8768ee8ce55bd73738de1e17 100644 (file)
@@ -815,11 +815,7 @@ static int cx25840_detect_client(struct i2c_adapter *adapter, int address,
 
 static int cx25840_attach_adapter(struct i2c_adapter *adapter)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adapter->class & I2C_CLASS_TV_ANALOG)
-#else
-       if (adapter->id == I2C_HW_B_BT848)
-#endif
                return i2c_probe(adapter, &addr_data, &cx25840_detect_client);
        return 0;
 }
index d14bcf4ceaeae621fad398f63cc4f7f74f139189..5385338efbf45ac4a689f82999e0c3ef358df60e 100644 (file)
@@ -486,9 +486,7 @@ static struct i2c_adapter em28xx_adap_template = {
        .inc_use = inc_use,
        .dec_use = dec_use,
 #endif
-#ifdef I2C_CLASS_TV_ANALOG
        .class = I2C_CLASS_TV_ANALOG,
-#endif
        .name = "em28xx",
        .id = I2C_HW_B_EM28XX,
        .algo = &em28xx_algo,
index 546e3f0067fe1ce9a65bd69e4855f65103ab9c04..1bf0fb38b918c5bb17ee62e9112c6220d8ecb8f1 100644 (file)
@@ -2336,13 +2336,9 @@ static int msp_detach(struct i2c_client *client)
 
 static int msp_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, msp_attach);
        return 0;
-#else
-       return i2c_probe(adap, &addr_data, msp_attach);
-#endif
 }
 
 static int __init msp3400_init_module(void)
index d60a783e04730b53c67c1a0b6ca5f4a8e2a8dfd3..ad582bd39819ceb4b148bbf27da0baa53adcf81e 100644 (file)
@@ -427,18 +427,8 @@ static int saa6588_attach(struct i2c_adapter *adap, int addr, int kind)
 
 static int saa6588_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, saa6588_attach);
-#else
-       switch (adap->id) {
-       case I2C_HW_B_BT848:
-       case I2C_HW_B_RIVA:
-       case I2C_HW_SAA7134:
-               return i2c_probe(adap, &addr_data, saa6588_attach);
-               break;
-       }
-#endif
        return 0;
 }
 
index 29e28c742cd4b3e407c7845cefbf237e8212edde..685ca1780c66a73cd3cfed2dd314171b1558db09 100644 (file)
@@ -1326,11 +1326,7 @@ static int saa7115_attach(struct i2c_adapter *adapter, int address, int kind)
 
 static int saa7115_probe(struct i2c_adapter *adapter)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adapter->class & I2C_CLASS_TV_ANALOG)
-#else
-       if (adapter->id == I2C_HW_B_BT848)
-#endif
                return i2c_probe(adapter, &addr_data, &saa7115_attach);
        return 0;
 }
index bca6ed0e27525e5b5d06068add0f2183a36a89eb..aee0f2d73da3ff39bfe1e1182d69c9950999e393 100644 (file)
@@ -787,11 +787,7 @@ static int saa7127_attach(struct i2c_adapter *adapter, int address, int kind)
 
 static int saa7127_probe(struct i2c_adapter *adapter)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adapter->class & I2C_CLASS_TV_ANALOG)
-#else
-       if (adapter->id == I2C_HW_B_BT848)
-#endif
                return i2c_probe(adapter, &addr_data, saa7127_attach);
        return 0;
 }
index 1792d03d621d44596b0b75b7a5c149a6f0250b4c..7283caa0484b0e7175b4301be31c935c8b2a6c2c 100644 (file)
@@ -390,9 +390,7 @@ static struct i2c_algorithm saa7134_algo = {
 
 static struct i2c_adapter saa7134_adap_template = {
        .owner         = THIS_MODULE,
-#ifdef I2C_CLASS_TV_ANALOG
        .class         = I2C_CLASS_TV_ANALOG,
-#endif
        .name          = "saa7134",
        .id            = I2C_HW_SAA7134,
        .algo          = &saa7134_algo,
index 549c9929f107a84c76861df192c5db736aa3b541..3bd7dfb8cc7ceb03251b5c379267d9f8ae85b7a7 100644 (file)
@@ -323,13 +323,8 @@ static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
 
 static int tda7432_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, tda7432_attach);
-#else
-       if (adap->id == I2C_HW_B_BT848)
-               return i2c_probe(adap, &addr_data, tda7432_attach);
-#endif
        return 0;
 }
 
index 9c3ecf7a0fedef2b25f0fd19ac0d9a8b2a30ffcc..760ec3c2ac67ea56722632d78ce65f502b5052bd 100644 (file)
@@ -257,13 +257,8 @@ static int tda9875_attach(struct i2c_adapter *adap, int addr, int kind)
 
 static int tda9875_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, tda9875_attach);
-#else
-       if (adap->id == I2C_HW_B_BT848)
-               return i2c_probe(adap, &addr_data, tda9875_attach);
-#endif
        return 0;
 }
 
index 32f133ed0b0be0b7925f8541911f9a8e1a7032f3..9ae43a8cea52ae0571c7a423403795f983cc9521 100644 (file)
@@ -714,18 +714,8 @@ static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
 
 static int tda9887_probe(struct i2c_adapter *adap)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, tda9887_attach);
-#else
-       switch (adap->id) {
-       case I2C_HW_B_BT848:
-       case I2C_HW_B_RIVA:
-       case I2C_HW_SAA7134:
-               return i2c_probe(adap, &addr_data, tda9887_attach);
-               break;
-       }
-#endif
        return 0;
 }
 
index 0292c5abf14aab3fe1355a31c0bc8abab3e8a01a..19625e6410d150a85317d9962216d1c0ba0bb7bd 100644 (file)
@@ -1563,17 +1563,8 @@ static int chip_probe(struct i2c_adapter *adap)
           because dedicated drivers are used */
        if ((adap->id == I2C_HW_SAA7146))
                return 0;
-#ifdef I2C_CLASS_TV_ANALOG
        if (adap->class & I2C_CLASS_TV_ANALOG)
                return i2c_probe(adap, &addr_data, chip_attach);
-#else
-       switch (adap->id) {
-       case I2C_HW_B_BT848:
-       case I2C_HW_B_RIVA:
-       case I2C_HW_SAA7134:
-               return i2c_probe(adap, &addr_data, chip_attach);
-       }
-#endif
        return 0;
 }
 
index e837f9f7fed6924aae480db9e3b4458828cdaa1c..ce0da9c1a768b0eea920e97faf9e9968ab2cbb78 100644 (file)
@@ -267,22 +267,8 @@ static int tvmixer_clients(struct i2c_client *client)
        struct video_audio va;
        int i,minor;
 
-#ifdef I2C_CLASS_TV_ANALOG
        if (!(client->adapter->class & I2C_CLASS_TV_ANALOG))
                return -1;
-#else
-       /* TV card ??? */
-       switch (client->adapter->id) {
-       case I2C_HW_SMBUS_VOODOO3:
-       case I2C_HW_B_BT848:
-       case I2C_HW_B_RIVA:
-               /* ok, have a look ... */
-               break;
-       default:
-               /* ignore that one */
-               return -1;
-       }
-#endif
 
        /* unregister ?? */
        for (i = 0; i < DEV_MAX; i++) {
index bbfd55cd9948f6433ba2e7d3a61923cb0b711848..3472f08e41fd2797f063a9f7941124d6325c1402 100644 (file)
@@ -206,11 +206,7 @@ static int wm8775_attach(struct i2c_adapter *adapter, int address, int kind)
 
 static int wm8775_probe(struct i2c_adapter *adapter)
 {
-#ifdef I2C_CLASS_TV_ANALOG
        if (adapter->class & I2C_CLASS_TV_ANALOG)
-#else
-       if (adapter->id == I2C_HW_B_BT848)
-#endif
                return i2c_probe(adapter, &addr_data, wm8775_attach);
        return 0;
 }