diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-18 06:31:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-24 14:26:51 -0500 |
commit | 09df1c163adcf43e2c4234b52985f34b95b7634e (patch) | |
tree | 26bfc6ba4d135f932038e2b41c79d86c474d5abd /drivers/media/video/bt8xx/bttv-cards.c | |
parent | 7c9b5048305ead226fb16def98d86f3ed67c4807 (diff) |
V4L/DVB (3548): Renamed I2C_foo addresses to I2C_ADDR_foo
I2C_foo were used for some i2c addresses. Bad, since those constants could
mean other i2c chip things.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-cards.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-cards.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index abfa6ad857a0..e869bfbab378 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c | |||
@@ -3046,7 +3046,7 @@ static void miro_pinnacle_gpio(struct bttv *btv) | |||
3046 | gpio_inout(0xffffff, 0); | 3046 | gpio_inout(0xffffff, 0); |
3047 | gpio = gpio_read(); | 3047 | gpio = gpio_read(); |
3048 | id = ((gpio>>10) & 63) -1; | 3048 | id = ((gpio>>10) & 63) -1; |
3049 | msp = bttv_I2CRead(btv, I2C_MSP3400, "MSP34xx"); | 3049 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
3050 | if (id < 32) { | 3050 | if (id < 32) { |
3051 | btv->tuner_type = miro_tunermap[id]; | 3051 | btv->tuner_type = miro_tunermap[id]; |
3052 | if (0 == (gpio & 0x20)) { | 3052 | if (0 == (gpio & 0x20)) { |
@@ -3442,8 +3442,8 @@ void __devinit bttv_init_card2(struct bttv *btv) | |||
3442 | 3442 | ||
3443 | if (bttv_tvcards[btv->c.type].digital_mode == DIGITAL_MODE_CAMERA) { | 3443 | if (bttv_tvcards[btv->c.type].digital_mode == DIGITAL_MODE_CAMERA) { |
3444 | /* detect Bt832 chip for quartzsight digital camera */ | 3444 | /* detect Bt832 chip for quartzsight digital camera */ |
3445 | if ((bttv_I2CRead(btv, I2C_BT832_ALT1, "Bt832") >=0) || | 3445 | if ((bttv_I2CRead(btv, I2C_ADDR_BT832_ALT1, "Bt832") >=0) || |
3446 | (bttv_I2CRead(btv, I2C_BT832_ALT2, "Bt832") >=0)) | 3446 | (bttv_I2CRead(btv, I2C_ADDR_BT832_ALT2, "Bt832") >=0)) |
3447 | boot_bt832(btv); | 3447 | boot_bt832(btv); |
3448 | } | 3448 | } |
3449 | 3449 | ||
@@ -3452,19 +3452,19 @@ void __devinit bttv_init_card2(struct bttv *btv) | |||
3452 | 3452 | ||
3453 | /* try to detect audio/fader chips */ | 3453 | /* try to detect audio/fader chips */ |
3454 | if (!bttv_tvcards[btv->c.type].no_msp34xx && | 3454 | if (!bttv_tvcards[btv->c.type].no_msp34xx && |
3455 | bttv_I2CRead(btv, I2C_MSP3400, "MSP34xx") >=0) | 3455 | bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx") >=0) |
3456 | request_module("msp3400"); | 3456 | request_module("msp3400"); |
3457 | 3457 | ||
3458 | if (bttv_tvcards[btv->c.type].msp34xx_alt && | 3458 | if (bttv_tvcards[btv->c.type].msp34xx_alt && |
3459 | bttv_I2CRead(btv, I2C_MSP3400_ALT, "MSP34xx (alternate address)") >=0) | 3459 | bttv_I2CRead(btv, I2C_ADDR_MSP3400_ALT, "MSP34xx (alternate address)") >=0) |
3460 | request_module("msp3400"); | 3460 | request_module("msp3400"); |
3461 | 3461 | ||
3462 | if (!bttv_tvcards[btv->c.type].no_tda9875 && | 3462 | if (!bttv_tvcards[btv->c.type].no_tda9875 && |
3463 | bttv_I2CRead(btv, I2C_TDA9875, "TDA9875") >=0) | 3463 | bttv_I2CRead(btv, I2C_ADDR_TDA9875, "TDA9875") >=0) |
3464 | request_module("tda9875"); | 3464 | request_module("tda9875"); |
3465 | 3465 | ||
3466 | if (!bttv_tvcards[btv->c.type].no_tda7432 && | 3466 | if (!bttv_tvcards[btv->c.type].no_tda7432 && |
3467 | bttv_I2CRead(btv, I2C_TDA7432, "TDA7432") >=0) | 3467 | bttv_I2CRead(btv, I2C_ADDR_TDA7432, "TDA7432") >=0) |
3468 | request_module("tda7432"); | 3468 | request_module("tda7432"); |
3469 | 3469 | ||
3470 | if (bttv_tvcards[btv->c.type].needs_tvaudio) | 3470 | if (bttv_tvcards[btv->c.type].needs_tvaudio) |
@@ -3475,7 +3475,7 @@ void __devinit bttv_init_card2(struct bttv *btv) | |||
3475 | if (btv->tda9887_conf) | 3475 | if (btv->tda9887_conf) |
3476 | tda9887 = 1; | 3476 | tda9887 = 1; |
3477 | if (0 == tda9887 && 0 == bttv_tvcards[btv->c.type].has_dvb && | 3477 | if (0 == tda9887 && 0 == bttv_tvcards[btv->c.type].has_dvb && |
3478 | bttv_I2CRead(btv, I2C_TDA9887, "TDA9887") >=0) | 3478 | bttv_I2CRead(btv, I2C_ADDR_TDA9887, "TDA9887") >=0) |
3479 | tda9887 = 1; | 3479 | tda9887 = 1; |
3480 | /* Hybrid DVB card, DOES have a tda9887 */ | 3480 | /* Hybrid DVB card, DOES have a tda9887 */ |
3481 | if (btv->c.type == BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE) | 3481 | if (btv->c.type == BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE) |