diff options
-rw-r--r-- | linux/drivers/media/common/saa7146_i2c.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c index 9a62cb176..12d4ad655 100644 --- a/linux/drivers/media/common/saa7146_i2c.c +++ b/linux/drivers/media/common/saa7146_i2c.c @@ -56,7 +56,7 @@ int saa7146_i2c_msg_prepare(const struct i2c_msg m[], int num, u32 *op) size. if we exceed this limit... */ if ( (4*mem) > SAA7146_I2C_MEM ) { //fm DEB_I2C(("cannot prepare i2c-message.\n")); - return -1; + return -ENOMEM; } /* be careful: clear out the i2c-mem first */ @@ -253,9 +253,10 @@ int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword) /* we handle address-errors here */ if( 0 != (status & SAA7146_I2C_APERR) ) { DEB_I2C(("error in address phase.\n")); - return -2; + return -EREMOTEIO; } - return -1; + + return -EIO; } /* read back data, just in case we were reading ... */ |