]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7804): tea5767: Fix error logic
authorMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 30 Apr 2008 18:45:00 +0000 (15:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:53:58 +0000 (02:53 -0300)
commitc6f0c5c1612f015d45fec4199f2705ef16d7f4ed
tree10ec81016de1f846479d6450bc5c9f10aa4bffcc
parent720345dc42f5f5921a2fe3d6096f25bfd447e3a9
V4L/DVB (7804): tea5767: Fix error logic

As pointed by Andrew Morton, the error testing were wrong. After reviewing
tea5767, it were returning a positive value for errors.

So, the double errors were cancelling each other.

This patch fix it properly. It also considers any positive value as ok, on
tuner-core.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/tuners/tea5767.c
drivers/media/video/tuner-core.c