forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
b17f109df1
commit
13e001dfe3
@ -132,7 +132,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
mutex_unlock(&d->i2c_mutex);
|
mutex_unlock(&d->i2c_mutex);
|
||||||
return i;
|
return i == num ? num : -EREMOTEIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 cxusb_i2c_func(struct i2c_adapter *adapter)
|
static u32 cxusb_i2c_func(struct i2c_adapter *adapter)
|
||||||
|
Loading…
Reference in New Issue
Block a user