Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] [patch] stv0299 - permission denied
Hi!
Here is a small patch which replaces the return value of stv0299_writereg from
permission denied to a timeout message if the i2c_transfer failed. This value
is often used as a return value to the ioctl, so it makes more sense to have
it return this.
Kenneth
Index: stv0299.c
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/frontends/stv0299.c,v
retrieving revision 1.44
diff -u -r1.44 stv0299.c
--- stv0299.c 7 Jun 2004 17:26:17 -0000 1.44
+++ stv0299.c 21 Jun 2004 09:50:20 -0000
@@ -282,7 +282,7 @@
dprintk("%s: writereg error (reg == 0x%02x, val == 0x%02x, "
"ret == %i)\n", __FUNCTION__, reg, data, ret);
- return (ret != 1) ? -1 : 0;
+ return (ret != 1) ? -ETIMEDOUT : 0;
}
Home |
Main Index |
Thread Index