Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;