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

Commit 956adf74 authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Greg Kroah-Hartman
Browse files

greybus: Remove unused field from data_connection



Audio codec driver internally maintains a struct containing info about
module's data connection. Remove unused field from this struct.

Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 60e7327d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -131,8 +131,6 @@ struct gbaudio_control {
struct gbaudio_data_connection {
	int id;
	__le16 data_cport;
	int cport_configured;
	char name[NAME_SIZE];
	struct gb_connection *connection;
	struct list_head list;
};
+0 −2
Original line number Diff line number Diff line
@@ -197,8 +197,6 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule,
	}

	greybus_set_drvdata(bundle, gbmodule);
	/* dai->name should be same as codec->dai_name */
	strlcpy(dai->name, "greybus-apb1", NAME_SIZE);
	dai->id = 0;
	dai->data_cport = connection->intf_cport_id;
	dai->connection = connection;