]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tda18271: properly report read errors in tda18271_get_id
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 2 Oct 2012 14:04:36 +0000 (11:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Oct 2012 18:17:46 +0000 (15:17 -0300)
commit8ac0b3ebb8cc483e7dc840bece0fbae7622f3704
tree34596aefad02702460df4271edebe73eee79bc94
parent001c707c87f0d761af6012d91f79db662b581787
[media] tda18271: properly report read errors in tda18271_get_id

Until now, if there is a read error in tda18271_get_id, the driver
reports "Unknown device..."  Instead, check the return value of
tda18271_read_regs and display the appropriate error message.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/tda18271-fe.c