From: Vaibhav Agarwal Date: Thu, 4 Aug 2016 09:44:36 +0000 (+0530) Subject: greybus: Remove unused field from data_connection X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=956adf749d697decd9fb5f46aa0fbbc889f4dfe1;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Mark Greer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h index 8cd5bd7..7a2dbc5 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 9632bc1..c217271 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;