The patch number 13292 was added via Douglas Schilling Landgraf 
<dougsl...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Sebastian Andrzej Siewior  <bige...@linutronix.de>
tvp514x: recognize the error case in tvp514x_read_reg()


i2c_smbus_read_byte_data() returns a negative value on error. It is very
likely to be != -1 (-EPERM).

Priority: normal

Signed-off-by: Sebastian Andrzej Siewior <bige...@linutronix.de>
Acked-by: Vaibhav Hiremath <hvaib...@ti.com>
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>


---

 linux/drivers/media/video/tvp514x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r e6aac1fd3e7c -r fd73c5c4d347 linux/drivers/media/video/tvp514x.c
--- a/linux/drivers/media/video/tvp514x.c       Wed Nov 04 13:33:59 2009 -0500
+++ b/linux/drivers/media/video/tvp514x.c       Wed Nov 04 13:35:09 2009 -0500
@@ -272,7 +272,7 @@
 read_again:
 
        err = i2c_smbus_read_byte_data(client, reg);
-       if (err == -1) {
+       if (err < 0) {
                if (retry <= I2C_RETRY_COUNT) {
                        v4l2_warn(sd, "Read: retry ... %d\n", retry);
                        retry++;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/fd73c5c4d347425a22a93e976ebe10027bba8f3e

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to