aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-i2c.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:20 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:20 -0500
commitb060c25f70adb20532dacefa72029d1d2db1a7f1 (patch)
treeac75243ccd4f5c2bce2ed8ad9d8b5ddee624fda8 /drivers/media/video/bttv-i2c.c
parentb5b8ab8d93ec46fec279b22eb1a613be18f49f7a (diff)
V4L/DVB (3123a): remove uneeded #if from V4L subsystem
- some uneeded #if were introduced by a previous patch. this patch removes these. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/bttv-i2c.c')
-rw-r--r--drivers/media/video/bttv-i2c.c6
1 files changed, 0 insertions, 6 deletions
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);