From 0cf5ff79c30994429fff3a1eb25e710a587415d5 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 18 May 2004 20:22:14 +0000 Subject: - more I2C_ADAP_CLASS_TV_DIGITAL fixes --- linux/drivers/media/dvb/ttpci/budget-core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/dvb/ttpci') diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c index fc54b0e09..85bb4a9d1 100644 --- a/linux/drivers/media/dvb/ttpci/budget-core.c +++ b/linux/drivers/media/dvb/ttpci/budget-core.c @@ -317,7 +317,11 @@ int ttpci_budget_init (struct budget *budget, if (bi->type != BUDGET_FS_ACTIVY) saa7146_write(dev, GPIO_CTRL, 0x500000); /* GPIO 3 = 1 */ +#ifdef I2C_ADAP_CLASS_TV_DIGITAL saa7146_i2c_adapter_prepare(dev, &budget->i2c_adap, I2C_ADAP_CLASS_TV_DIGITAL, SAA7146_I2C_BUS_BIT_RATE_120); +#else + saa7146_i2c_adapter_prepare(dev, &budget->i2c_adap, I2C_CLASS_TV_DIGITAL, SAA7146_I2C_BUS_BIT_RATE_120); +#endif budget->i2c_adap.client_register = client_register; budget->i2c_adap.client_unregister = client_unregister; -- cgit v1.2.3