Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: [patch] stv0299 - permission denied
Kenneth Aafløy wrote:
>
> 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.
...
> - return (ret != 1) ? -1 : 0;
> + return (ret != 1) ? -ETIMEDOUT : 0;
I changed that to -EREMOTEIO to be consistent with other I2C
related error return values in stv0299.c.
Thanks,
Johannes
Home |
Main Index |
Thread Index