diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-25 12:10:12 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-25 12:10:12 +0100 |
commit | 2f11a65d67816d29237c2d9ae30285829e92b8f4 (patch) | |
tree | a2e7a05df9bd14faf6d728f23f8a402a6efc19c3 /linux/drivers/media/video/tveeprom.c | |
parent | 9ca6c476f94c3fd38296dae63120868b534386f1 (diff) | |
download | mediapointer-dvb-s2-2f11a65d67816d29237c2d9ae30285829e92b8f4.tar.gz mediapointer-dvb-s2-2f11a65d67816d29237c2d9ae30285829e92b8f4.tar.bz2 |
Add support for I2C_HW_B_CX2341X board adapter
From: Hans Verkuil <hverkuil@xs4all.nl>
- Add missing class check to tveeprom_attach_adapter.
- Add CX2341X specific IR probe address list.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/tveeprom.c')
-rw-r--r-- | linux/drivers/media/video/tveeprom.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tveeprom.c b/linux/drivers/media/video/tveeprom.c index d82cb967c..8dad3c6a8 100644 --- a/linux/drivers/media/video/tveeprom.c +++ b/linux/drivers/media/video/tveeprom.c @@ -778,9 +778,13 @@ tveeprom_detect_client(struct i2c_adapter *adapter, static int tveeprom_attach_adapter (struct i2c_adapter *adapter) { - if (adapter->id != I2C_HW_B_BT848) - return 0; - return i2c_probe(adapter, &addr_data, tveeprom_detect_client); +#ifdef I2C_CLASS_TV_ANALOG + if (adapter->class & I2C_CLASS_TV_ANALOG) +#else + if (adapter->id == I2C_HW_B_BT848) +#endif + return i2c_probe(adapter, &addr_data, tveeprom_detect_client); + return 0; } static int |