提交 4a3f7691 编写于 作者: A Ahbong Chang 提交者: Wolfram Sang

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: NAhbong Chang <cwahbong@google.com>
Reviewed-by: NTodd Poynor <toddpoynor@google.com>
Reviewed-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 d9a22d71
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册