Commit 0634874a authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Greg Kroah-Hartman

greybus: audio: Use standard API to set connections' private data

Use standard API greybus_set_drvdata() while setting private
data pointers for mgmt & data connection.
Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c188fdc8
......@@ -173,7 +173,7 @@ static int gb_audio_add_mgmt_connection(struct gbaudio_module_info *gbmodule,
if (IS_ERR(connection))
return PTR_ERR(connection);
connection->private = gbmodule;
greybus_set_drvdata(bundle, gbmodule);
gbmodule->mgmt_connection = connection;
return 0;
......@@ -201,7 +201,7 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule,
return PTR_ERR(connection);
}
connection->private = gbmodule;
greybus_set_drvdata(bundle, gbmodule);
/* dai->name should be same as codec->dai_name */
strlcpy(dai->name, "greybus-apb1", NAME_SIZE);
dai->data_cport = connection->intf_cport_id;
......
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