Commit f281f2de authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: i2c: fix name conflict between function and struct: gb_i2c_transfer_response

'gb_i2c_transfer_response' is the name given to a function and a struct. Though
we don't get any compilation errors/warnings about it, but the names should be
unique.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent c2f79238
...@@ -230,7 +230,7 @@ gb_i2c_transfer_request(struct gb_connection *connection, ...@@ -230,7 +230,7 @@ gb_i2c_transfer_request(struct gb_connection *connection,
return operation; return operation;
} }
static void gb_i2c_transfer_response(struct i2c_msg *msgs, u32 msg_count, static void gb_i2c_decode_response(struct i2c_msg *msgs, u32 msg_count,
struct gb_i2c_transfer_response *response) struct gb_i2c_transfer_response *response)
{ {
struct i2c_msg *msg = msgs; struct i2c_msg *msg = msgs;
...@@ -273,7 +273,7 @@ static int gb_i2c_transfer_operation(struct gb_i2c_device *gb_i2c_dev, ...@@ -273,7 +273,7 @@ static int gb_i2c_transfer_operation(struct gb_i2c_device *gb_i2c_dev,
struct gb_i2c_transfer_response *response; struct gb_i2c_transfer_response *response;
response = operation->response->payload; response = operation->response->payload;
gb_i2c_transfer_response(msgs, msg_count, response); gb_i2c_decode_response(msgs, msg_count, response);
ret = msg_count; ret = msg_count;
} else if (!gb_i2c_expected_transfer_error(ret)) { } else if (!gb_i2c_expected_transfer_error(ret)) {
pr_err("transfer operation failed (%d)\n", ret); pr_err("transfer operation failed (%d)\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment