Added id field to data connection struct. This is used to identify which
data connection to use while enabling interface between module & APB.
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
};
struct gbaudio_data_connection {
+ int id;
__le16 data_cport;
int cport_configured;
char name[NAME_SIZE];
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;
list_add(&dai->list, &gbmodule->data_list);