diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-21 10:01:34 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-21 10:01:34 -0500 |
commit | 09729871a743a1ac9a8cc12d1103b5230a49ce28 (patch) | |
tree | 1b172fa9a771e042e45785a4f505eebbe4f63635 /linux/drivers/media/video/tuner-core.c | |
parent | 632f4298b8f361925ed848c6117f0e1f57bd4f00 (diff) | |
download | mediapointer-dvb-s2-09729871a743a1ac9a8cc12d1103b5230a49ce28.tar.gz mediapointer-dvb-s2-09729871a743a1ac9a8cc12d1103b5230a49ce28.tar.bz2 |
tuner: suppress obsolete tuner i2c address warning for XC5000 tuners
From: Michael Krufky <mkrufky@linuxtv.org>
We already know that the XC5000 tuner can only be located at
i2c address 0x61, 0x62, 0x63 or 0x64
We shouldn't display this warning if the XC5000 tuner is present.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 6305998e2..99bba6415 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -326,6 +326,12 @@ static void tuner_i2c_address_check(struct tuner *t) ((t->i2c->addr < 0x64) || (t->i2c->addr > 0x6f))) return; + /* We already know that the XC5000 can only be located at + * i2c address 0x61, 0x62, 0x63 or 0x64 */ + if ((t->type == TUNER_XC5000) && + ((t->i2c->addr <= 0x64)) && (t->i2c->addr >= 0x61)) + return; + tuner_warn("====================== WARNING! ======================\n"); tuner_warn("Support for tuners in i2c address range 0x64 thru 0x6f\n"); tuner_warn("will soon be dropped. This message indicates that your\n"); |