greybus: Remove unused field from data_connection
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Thu, 4 Aug 2016 09:44:36 +0000 (15:14 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Aug 2016 17:07:30 +0000 (19:07 +0200)
Audio codec driver internally maintains a struct containing info about
module's data connection. Remove unused field from this struct.

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>
drivers/staging/greybus/audio_codec.h
drivers/staging/greybus/audio_module.c

index 8cd5bd7..7a2dbc5 100644 (file)
@@ -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;
 };
index 9632bc1..c217271 100644 (file)
@@ -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;