ASoC: amd: acp: Drop redundant initialization of machine driver data
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 19 Dec 2023 03:07:19 +0000 (05:07 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jan 2024 00:06:24 +0000 (00:06 +0000)
Simplify driver data configuration by removing redundant initialization
of members in static structs.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: https://msgid.link/r/20231219030728.2431640-2-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-sof-mach.c

index 2a9fd3275e42f5fa1086d10baf4a8cc4cc2b69b1..1d313fcb5f2db5a545f3d855d7ca68143cec0d92 100644 (file)
@@ -28,7 +28,6 @@ static struct acp_card_drvdata sof_rt5682_rt1019_data = {
        .hs_codec_id = RT5682,
        .amp_codec_id = RT1019,
        .dmic_codec_id = DMIC,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_rt5682_max_data = {
@@ -38,7 +37,6 @@ static struct acp_card_drvdata sof_rt5682_max_data = {
        .hs_codec_id = RT5682,
        .amp_codec_id = MAX98360A,
        .dmic_codec_id = DMIC,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_rt5682s_rt1019_data = {
@@ -48,7 +46,6 @@ static struct acp_card_drvdata sof_rt5682s_rt1019_data = {
        .hs_codec_id = RT5682S,
        .amp_codec_id = RT1019,
        .dmic_codec_id = DMIC,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_rt5682s_max_data = {
@@ -58,7 +55,6 @@ static struct acp_card_drvdata sof_rt5682s_max_data = {
        .hs_codec_id = RT5682S,
        .amp_codec_id = MAX98360A,
        .dmic_codec_id = DMIC,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_nau8825_data = {
@@ -69,7 +65,6 @@ static struct acp_card_drvdata sof_nau8825_data = {
        .amp_codec_id = MAX98360A,
        .dmic_codec_id = DMIC,
        .soc_mclk = true,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_rt5682s_hs_rt1019_data = {
@@ -80,20 +75,15 @@ static struct acp_card_drvdata sof_rt5682s_hs_rt1019_data = {
        .amp_codec_id = RT1019,
        .dmic_codec_id = DMIC,
        .soc_mclk = true,
-       .tdm_mode = false,
 };
 
 static struct acp_card_drvdata sof_nau8821_max98388_data = {
        .hs_cpu_id = I2S_SP,
        .amp_cpu_id = I2S_HS,
        .bt_cpu_id = I2S_BT,
-       .dmic_cpu_id = NONE,
        .hs_codec_id = NAU8821,
        .amp_codec_id = MAX98388,
-       .bt_codec_id = NONE,
-       .dmic_codec_id = NONE,
        .soc_mclk = true,
-       .tdm_mode = false,
 };
 
 static int acp_sof_probe(struct platform_device *pdev)