diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 15:48:27 +1000 |
---|---|---|
committer | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 15:48:27 +1000 |
commit | 335a3264953c52500fa6b12a688b4fd6c388d9bb (patch) | |
tree | 7e524f5e1838dd4de04d5ca61a501cf80b4d50f5 /linux/drivers/media | |
parent | bf61253a0eb92ce43d2cc451cd932909307c7231 (diff) | |
download | mediapointer-dvb-s2-335a3264953c52500fa6b12a688b4fd6c388d9bb.tar.gz mediapointer-dvb-s2-335a3264953c52500fa6b12a688b4fd6c388d9bb.tar.bz2 |
CXUSB: i2c transfer failure notification
From: Chris Pascoe <c.pascoe@itee.uq.edu.au>
The i2c master_xfer routine should return a negative result if not all
transfers completed successfully.
Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/cxusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c index 5f7992c40..9e2899ab4 100644 --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c @@ -132,7 +132,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], } mutex_unlock(&d->i2c_mutex); - return i; + return i == num ? num : -EREMOTEIO; } static u32 cxusb_i2c_func(struct i2c_adapter *adapter) |