Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp250673rdh; Mon, 18 Dec 2023 19:07:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHc3wFSZ/fMPmL5zoQOwa09yzuMOyYhnN+MxMd647lW8ORz/qXMkTPS9Mkfg7Y8fGD58Jdv X-Received: by 2002:a2e:711:0:b0:2cc:1e7b:3612 with SMTP id 17-20020a2e0711000000b002cc1e7b3612mr3095692ljh.65.1702955279570; Mon, 18 Dec 2023 19:07:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702955279; cv=none; d=google.com; s=arc-20160816; b=lyNfAPtpp960zfqOOqaNYHlY0fA0YpMezpk1L0uOvY30o8nxRI1qRhReuIId9eKwLY 7N9+tj90sBTXvjLoq2plcXsrL7idFHVBN3rIHvoV+SfU2VHqroqjSHogvdXLAdTl6ulz Jgk03qMKgp2zscMBCSvEyMFH2dwmJNWbOcz/DfnTxTFcZTyQdJ3eRZkstABE3SoiaXvK FgrMLcqR61iFCfjPScoFp5vq7gSrkNmhyzqoTXFO61AeJhWprog5P8/AP8l1VYhfE3dr YnRYK/UOVQn30KOThpOcqedwGqZvJnDL8vyir+KtFU8TQw4ugzw5+4jG7kPP+CGXZE+B cGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GBsmReBYBkzF3X98oGyVYsUGSoe2kIPjzCtdudb7zxI=; fh=h70dJO8c/kQzBx5G08DNBGLpC0OGfeXZuzZObLFqbr4=; b=yTmO7kBic/ABKELpCCmbk//cwzJSJUKv0+8ZcE4Z9ZE4ZZMDJ+wKK+53AoQsyhFmti MjoiHZvTra9hPUpZkFjEIjKEaOOZlvgyFVFxXLf1kD7MCou6qei8Cm6zZvXWPE9C2QOI B8MzNxRDHHVlXSoGn7BySQjdaEVqI1gtSe5bG3lg6R4f4wsYir8ZxzY3k/tvi8qm+cct ey7MyVlSDW20ziXPTgWXR+iFT2o5WB1OFsvQOFZOxFxYJADPUHflI9yIr5rpxo8VfJlh KDbYFej9MGQZx4/GSwVI0KgEVklgienr0TnWTrZH1yfkvJ7Mm1baKZfpSKADS+vDx1KD 13ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KHCleshB; spf=pass (google.com: domain of linux-kernel+bounces-4623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s7-20020a50ab07000000b00552f78380c5si2878943edc.539.2023.12.18.19.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 19:07:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KHCleshB; spf=pass (google.com: domain of linux-kernel+bounces-4623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 473F61F2432D for ; Tue, 19 Dec 2023 03:07:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27F965388; Tue, 19 Dec 2023 03:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="KHCleshB" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE03A8474; Tue, 19 Dec 2023 03:07:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702955262; bh=yTI/2EyPQ8dikP4XMvHL83IpZe0+cQCB5jAsZLInsrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KHCleshBag26U8woojapCZlBD6PfWUWH295Mm/EC+piz7H0TYxbwdQ9M0UVQcB5AQ G717lm33xF3d5fvfo905cscBVns7jyuJi/DjCdkRPdm360ztQwhV1LGb1baIYrMzQs k+AasryPn1T6SGbJOncBrF8IzRCkI5lZs4RIENjbED3v0oHbDb1MwP0GonY8gZ0/NX N8pAvAxqeUYgRkt/dHw0bx3s6zL7lFv+o3IshyXFIwSqCjuiv2RxRv5ZuoFQ1nwxzC Lb0i2AqYKyO2aUf1WdfP+Or4Iee2W6EEml/BPlD5aeRg1/XIEmH7wOZINVyhkYLsXS i6uh6Tp5KaNoQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id DA11F3781493; Tue, 19 Dec 2023 03:07:41 +0000 (UTC) From: Cristian Ciocaltea To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Venkata Prasad Potturu , Emil Velikov , Syed Saba Kareem , Kuninori Morimoto , Alper Nebi Yasak , Vijendar Mukunda , V sujith kumar Reddy , Mastan Katragadda , Ajit Kumar Pandey Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org, kernel@collabora.com Subject: [PATCH v2 1/8] ASoC: amd: acp: Drop redundant initialization of machine driver data Date: Tue, 19 Dec 2023 05:07:19 +0200 Message-ID: <20231219030728.2431640-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219030728.2431640-1-cristian.ciocaltea@collabora.com> References: <20231219030728.2431640-1-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Simplify driver data configuration by removing redundant initialization of members in static structs. Signed-off-by: Cristian Ciocaltea Reviewed-by: Emil Velikov --- sound/soc/amd/acp/acp-sof-mach.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sound/soc/amd/acp/acp-sof-mach.c b/sound/soc/amd/acp/acp-sof-mach.c index 2a9fd3275e42..1d313fcb5f2d 100644 --- a/sound/soc/amd/acp/acp-sof-mach.c +++ b/sound/soc/amd/acp/acp-sof-mach.c @@ -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) -- 2.43.0