summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-08-04 12:44:36 +0300
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-04 20:07:30 +0300
commit956adf749d697decd9fb5f46aa0fbbc889f4dfe1 (patch)
tree5ef85933a775d594be8462a73a406b15803e24da /drivers
parent60e7327d54b270eeadc120b6202af50856548376 (diff)
downloadlinux-956adf749d697decd9fb5f46aa0fbbc889f4dfe1.tar.xz
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: Vaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/audio_codec.h2
-rw-r--r--drivers/staging/greybus/audio_module.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h
index 8cd5bd7a6c31..7a2dbc517663 100644
--- a/drivers/staging/greybus/audio_codec.h
+++ b/drivers/staging/greybus/audio_codec.h
@@ -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;
};
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c
index 9632bc119f87..c2172719e687 100644
--- a/drivers/staging/greybus/audio_module.c
+++ b/drivers/staging/greybus/audio_module.c
@@ -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;