mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
i2c: viperboard: return message count on master_xfer success
[ Upstream commit35cd67a0ca] Returning zero is wrong in this case. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Fixes:174a13aa86("i2c: Add viperboard i2c master driver") Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbfe697cdb
commit
daf6bdb29d
@@ -337,7 +337,7 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
|
||||
}
|
||||
mutex_unlock(&vb->lock);
|
||||
}
|
||||
return 0;
|
||||
return num;
|
||||
error:
|
||||
mutex_unlock(&vb->lock);
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user