OSDN Git Service

i2c: fix parameter of trace_i2c_result
authorAhbong Chang <cwahbong@google.com>
Sat, 31 Mar 2018 08:17:34 +0000 (16:17 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Apr 2018 14:37:45 +0000 (16:37 +0200)
commit4a3f7691e2f722421b231d3f3fa05b0a6670a20a
tree9ee72890001907a7f908ac2ecbfc05c9883edda1
parentd9a22d713acb484f9d60861598a71e28129c0afa
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>
drivers/i2c/i2c-core-base.c