summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda9840.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-03-14 09:56:11 +0000
committerMichael Hunold <devnull@localhost>2003-03-14 09:56:11 +0000
commitcfe4730591564ebe99859d687a3dba2427dbb292 (patch)
treecb4e5d5c924336eddd89241018a84025f34ef2c7 /linux/drivers/media/video/tda9840.c
parent3ca8682b7e844390bbee9e29dfe05066b4628d1a (diff)
downloadmediapointer-dvb-s2-cfe4730591564ebe99859d687a3dba2427dbb292.tar.gz
mediapointer-dvb-s2-cfe4730591564ebe99859d687a3dba2427dbb292.tar.bz2
saa7146: set default values for brightness/contrast/saturation on driver load
mxb: prevent helper modules to probe on unknown i2c-busses. (for example on a Matrox gfx card)
Diffstat (limited to 'linux/drivers/media/video/tda9840.c')
-rw-r--r--linux/drivers/media/video/tda9840.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tda9840.c b/linux/drivers/media/video/tda9840.c
index 6da68d762..85295ac2d 100644
--- a/linux/drivers/media/video/tda9840.c
+++ b/linux/drivers/media/video/tda9840.c
@@ -234,6 +234,12 @@ static int tda9840_detect(struct i2c_adapter *adapter, int address, unsigned sho
static int tda9840_attach(struct i2c_adapter *adapter)
{
+ /* let's see whether this is a know adapter we can attach to */
+ if( adapter->id != I2C_ALGO_SAA7146 ) {
+ dprintk("tda9840.o: refusing to probe on unknown adapter [name='%s',id=0x%x]\n",adapter->name,adapter->id);
+ return -ENODEV;
+ }
+
return i2c_probe(adapter,&addr_data,&tda9840_detect);
}