Skip to content

Commit

Permalink
V4L/DVB (7056): tuner: suppress obsolete tuner i2c address warning fo…
Browse files Browse the repository at this point in the history
…r XC5000 tuners

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 0f2ce98 commit 1641002
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,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");
Expand Down

0 comments on commit 1641002

Please sign in to comment.