From: Cezary Rojewski <cezary.rojewski@intel.com>
To: broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com,
andriy.shevchenko@linux.intel.com, flove@realtek.com,
oder_chiou@realtek.com, shumingf@realtek.com,
linux-sound@vger.kernel.org,
Cezary Rojewski <cezary.rojewski@intel.com>
Subject: [PATCH v2 12/22] ASoC: codecs: rt5651: Fix definition of device_id tables
Date: Wed, 26 Feb 2025 12:26:02 +0100 [thread overview]
Message-ID: <20250226112612.166989-13-cezary.rojewski@intel.com> (raw)
In-Reply-To: <20250226112612.166989-1-cezary.rojewski@intel.com>
There shall be no comma after the terminator entry and initializing
fields with 0 for statically defined structs is redundant.
While at it, sort the IDs alphabetically.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
sound/soc/codecs/rt5651.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index 00421a1f54bf..2c1fad3ee690 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -2184,16 +2184,16 @@ static const struct regmap_config rt5651_regmap = {
#if defined(CONFIG_OF)
static const struct of_device_id rt5651_of_match[] = {
{ .compatible = "realtek,rt5651", },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, rt5651_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5651_acpi_match[] = {
- { "10EC5651", 0 },
- { "10EC5640", 0 },
- { },
+ { "10EC5640" },
+ { "10EC5651" },
+ { }
};
MODULE_DEVICE_TABLE(acpi, rt5651_acpi_match);
#endif
--
2.25.1
next prev parent reply other threads:[~2025-02-26 11:10 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 11:25 [PATCH v2 00/22] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 01/22] ASoC: codecs: rt1011: Fix definition of device_id tables Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 02/22] ASoC: codecs: rt1015: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 03/22] ASoC: codecs: rt1016: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 04/22] ASoC: codecs: rt1019: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 05/22] ASoC: codecs: rt1305: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 06/22] ASoC: codecs: rt1308: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 07/22] ASoC: codecs: rt1318: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 08/22] ASoC: codecs: rt274: " Cezary Rojewski
2025-02-26 11:25 ` [PATCH v2 09/22] ASoC: codecs: rt5514: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 10/22] ASoC: codecs: rt5640: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 11/22] ASoC: codecs: rt5645: " Cezary Rojewski
2025-02-26 11:26 ` Cezary Rojewski [this message]
2025-02-26 11:26 ` [PATCH v2 13/22] ASoC: codecs: rt5659: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 14/22] ASoC: codecs: rt5660: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 15/22] ASoC: codecs: rt5663: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 16/22] ASoC: codecs: rt5665: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 17/22] ASoC: codecs: rt5668: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 18/22] ASoC: codecs: rt5670: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 19/22] ASoC: codecs: rt5682: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 20/22] ASoC: codecs: rt286: Update " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 21/22] ASoC: codecs: rt298: " Cezary Rojewski
2025-02-26 11:26 ` [PATCH v2 22/22] ASoC: codecs: rt5677: " Cezary Rojewski
2025-02-26 14:06 ` Andy Shevchenko
2025-02-26 14:06 ` [PATCH v2 00/22] ASoC: codecs: Update device_id tables for Realtek drivers Andy Shevchenko
2025-03-04 15:35 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250226112612.166989-13-cezary.rojewski@intel.com \
--to=cezary.rojewski@intel.com \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=flove@realtek.com \
--cc=linux-sound@vger.kernel.org \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=shumingf@realtek.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox