summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bttv-i2c.c
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-10-05 12:57:08 +0000
committerGerd Knorr <devnull@localhost>2004-10-05 12:57:08 +0000
commitbcc9e747d2ce00c7e3d9238508fc04ce32958ef3 (patch)
treeb02a6ee38c72ed96bd55cb236d0e1bc5b0696e67 /linux/drivers/media/video/bttv-i2c.c
parentb5ec404857ece5b3a8203e9fac09be563a35f3ab (diff)
downloadmediapointer-dvb-s2-bcc9e747d2ce00c7e3d9238508fc04ce32958ef3.tar.gz
mediapointer-dvb-s2-bcc9e747d2ce00c7e3d9238508fc04ce32958ef3.tar.bz2
- misc build fixes.
- start switching over msp34xx to v4l2.
Diffstat (limited to 'linux/drivers/media/video/bttv-i2c.c')
-rw-r--r--linux/drivers/media/video/bttv-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/bttv-i2c.c b/linux/drivers/media/video/bttv-i2c.c
index 131231718..8880d872f 100644
--- a/linux/drivers/media/video/bttv-i2c.c
+++ b/linux/drivers/media/video/bttv-i2c.c
@@ -1,5 +1,5 @@
/*
- $Id: bttv-i2c.c,v 1.8 2004/09/22 11:47:11 kraxel Exp $
+ $Id: bttv-i2c.c,v 1.9 2004/10/05 12:57:08 kraxel Exp $
bttv-i2c.c -- all the i2c code is here
@@ -459,10 +459,12 @@ 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);