Commit 62aadeea 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_request

'gb_i2c_transfer_request' 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 f281f2de
...@@ -163,8 +163,8 @@ gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg) ...@@ -163,8 +163,8 @@ gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg)
} }
static struct gb_operation * static struct gb_operation *
gb_i2c_transfer_request(struct gb_connection *connection, gb_i2c_operation_create(struct gb_connection *connection,
struct i2c_msg *msgs, u32 msg_count) struct i2c_msg *msgs, u32 msg_count)
{ {
struct gb_i2c_transfer_request *request; struct gb_i2c_transfer_request *request;
struct gb_operation *operation; struct gb_operation *operation;
...@@ -264,7 +264,7 @@ static int gb_i2c_transfer_operation(struct gb_i2c_device *gb_i2c_dev, ...@@ -264,7 +264,7 @@ static int gb_i2c_transfer_operation(struct gb_i2c_device *gb_i2c_dev,
struct gb_operation *operation; struct gb_operation *operation;
int ret; int ret;
operation = gb_i2c_transfer_request(connection, msgs, msg_count); operation = gb_i2c_operation_create(connection, msgs, msg_count);
if (!operation) if (!operation)
return -ENOMEM; return -ENOMEM;
......
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