summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-05-18 20:22:14 +0000
committerMichael Hunold <devnull@localhost>2004-05-18 20:22:14 +0000
commit0cf5ff79c30994429fff3a1eb25e710a587415d5 (patch)
treefbef5da626cba2dd66dfb871f76c80256327550c /linux/drivers/media/dvb/ttpci
parent26267d673f03608fe689f72375abfdf61d7ad49e (diff)
downloadmediapointer-dvb-s2-0cf5ff79c30994429fff3a1eb25e710a587415d5.tar.gz
mediapointer-dvb-s2-0cf5ff79c30994429fff3a1eb25e710a587415d5.tar.bz2
- more I2C_ADAP_CLASS_TV_DIGITAL fixes
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c4
1 files changed, 4 insertions, 0 deletions
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;