aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/cxusb.c
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-19 00:48:27 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:20 -0500
commit13e001dfe3aeb9e7b05445af76e5b47235e81285 (patch)
tree3099fea27dc58acd2344a3484dddd31d64f9adbd /drivers/media/dvb/dvb-usb/cxusb.c
parentb17f109df1cd9fe1009501d59e466701106590d7 (diff)
V4L/DVB (6625): CXUSB: i2c transfer failure notification
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 'drivers/media/dvb/dvb-usb/cxusb.c')
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index b4a3f7baf1b7..86fbd6c73ea9 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -132,7 +132,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
132 } 132 }
133 133
134 mutex_unlock(&d->i2c_mutex); 134 mutex_unlock(&d->i2c_mutex);
135 return i; 135 return i == num ? num : -EREMOTEIO;
136} 136}
137 137
138static u32 cxusb_i2c_func(struct i2c_adapter *adapter) 138static u32 cxusb_i2c_func(struct i2c_adapter *adapter)