]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: Intel: soc-acpi-intel-lnl/ptl-match: Simplify variable name
authorMac Chiang <mac.chiang@intel.com>
Wed, 7 May 2025 12:26:48 +0000 (20:26 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 8 May 2025 01:32:45 +0000 (10:32 +0900)
The variable name contains duplications;thus, remove the redundant strings.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20250507122649.153579-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-lnl-match.c
sound/soc/intel/common/soc-acpi-intel-ptl-match.c

index a2bee667facb8c702d8fcca760a40eed641f3b49..558dc4c912397dbb40cc4f843d02b405a9455458 100644 (file)
@@ -137,7 +137,7 @@ static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = {
        },
 };
 
-static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints_endpoints[] = {
+static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
        /* Jack Endpoint */
        {
                .num = 0,
@@ -350,8 +350,8 @@ static const struct snd_soc_acpi_adr_device rt1712_3_single_adr[] = {
 static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
        {
                .adr = 0x000230025D071201ull,
-               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
-               .endpoints = jack_amp_g1_dmic_endpoints_endpoints,
+               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
+               .endpoints = jack_amp_g1_dmic_endpoints,
                .name_prefix = "rt712"
        }
 };
index 0454de04da68a683cba2c8f2f3f34f5785ed3a36..f9510480d1885c09115e5989443d976130202463 100644 (file)
@@ -138,7 +138,7 @@ static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = {
        },
 };
 
-static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints_endpoints[] = {
+static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
        /* Jack Endpoint */
        {
                .num = 0,
@@ -288,8 +288,8 @@ static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
 static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
        {
                .adr = 0x000230025D071201ull,
-               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
-               .endpoints = jack_amp_g1_dmic_endpoints_endpoints,
+               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
+               .endpoints = jack_amp_g1_dmic_endpoints,
                .name_prefix = "rt712"
        }
 };
@@ -297,8 +297,8 @@ static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
 static const struct snd_soc_acpi_adr_device rt712_vb_3_group1_adr[] = {
        {
                .adr = 0x000330025D071201ull,
-               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
-               .endpoints = jack_amp_g1_dmic_endpoints_endpoints,
+               .num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
+               .endpoints = jack_amp_g1_dmic_endpoints,
                .name_prefix = "rt712"
        }
 };