summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-05-18 20:07:33 +0000
committerMichael Hunold <devnull@localhost>2004-05-18 20:07:33 +0000
commit26267d673f03608fe689f72375abfdf61d7ad49e (patch)
tree77bf2c1f72a5abe96996aac787997c3fae2c9279 /linux/drivers/media/dvb/ttpci/av7110.c
parentef9a3acd7e1655a5ba1ec3d6bd8e12ed533405e8 (diff)
downloadmediapointer-dvb-s2-26267d673f03608fe689f72375abfdf61d7ad49e.tar.gz
mediapointer-dvb-s2-26267d673f03608fe689f72375abfdf61d7ad49e.tar.bz2
- I2C_ADAP_CLASS_TV_DIGITAL is undefined for recent 2.6 kernel, so
use I2C_CLASS_TV_DIGITAL instead
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 32510e4f4..850ffc08f 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -1376,8 +1376,11 @@ static int av7110_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_d
/* the Siemens DVB needs this if you want to have the i2c chips
get recognized before the main driver is fully loaded */
saa7146_write(dev, GPIO_CTRL, 0x500000);
-
+#ifdef I2C_ADAP_CLASS_TV_DIGITAL
saa7146_i2c_adapter_prepare(dev, &av7110->i2c_adap, I2C_ADAP_CLASS_TV_DIGITAL, SAA7146_I2C_BUS_BIT_RATE_120); /* 275 kHz */
+#else
+ saa7146_i2c_adapter_prepare(dev, &av7110->i2c_adap, I2C_CLASS_TV_DIGITAL, SAA7146_I2C_BUS_BIT_RATE_120); /* 275 kHz */
+#endif
av7110->i2c_adap.client_register = client_register;
av7110->i2c_adap.client_unregister = client_unregister;