mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
i2c: fix parameter of trace_i2c_result
According to the event i2c_result defined in include/trace/events/i2c.h, the second parameter should be the number of messages instead of the ended loop index. The value of ended loop index is the same as ret. Signed-off-by: Ahbong Chang <cwahbong@google.com> Reviewed-by: Todd Poynor <toddpoynor@google.com> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
d9a22d713a
commit
4a3f7691e2
@ -1876,7 +1876,7 @@ int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
|
||||
for (i = 0; i < ret; i++)
|
||||
if (msgs[i].flags & I2C_M_RD)
|
||||
trace_i2c_reply(adap, &msgs[i], i);
|
||||
trace_i2c_result(adap, i, ret);
|
||||
trace_i2c_result(adap, num, ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user