From 26267d673f03608fe689f72375abfdf61d7ad49e Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 18 May 2004 20:07:33 +0000 Subject: - I2C_ADAP_CLASS_TV_DIGITAL is undefined for recent 2.6 kernel, so use I2C_CLASS_TV_DIGITAL instead --- linux/drivers/media/dvb/ttpci/av7110.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/ttpci/av7110.c') 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; -- cgit v1.2.3