]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commitb538d28c2e326ed226096408dce4d9469d7ffa39
tree10ec81016de1f846479d6450bc5c9f10aa4bffcc
parent09fee5f8211fc0a586187c4a0db7f5f42a4e333f
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