]> 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)
commit39f2d70222b3d5db6815710b9c090a68f96ded27
tree34596aefad02702460df4271edebe73eee79bc94
parentc300907e9ea7271b4d7d22899bbd19c98c082655
[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