diff mbox series

[24/24] ASoC: codecs: rt5682s: Update definition of device_id tables

Message ID 20250220112643.3813295-25-cezary.rojewski@intel.com (mailing list archive)
State New
Headers show
Series ASoC: codecs: Update device_id tables for Realtek drivers | expand

Commit Message

Cezary Rojewski Feb. 20, 2025, 11:26 a.m. UTC
Follow PCI-based format (10ECxxxx) for ACPI IDs by adding relevant
entries to the existing table.

While at it, there shall be no comma after the terminator entry and
initializing fields with 0 for statically defined structs is redundant.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/codecs/rt5682s.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Shuming [θŒƒζ›ΈιŠ˜] Feb. 21, 2025, 2:08 a.m. UTC | #1
> Follow PCI-based format (10ECxxxx) for ACPI IDs by adding relevant entries to
> the existing table.
> 
> While at it, there shall be no comma after the terminator entry and initializing
> fields with 0 for statically defined structs is redundant.
> 
> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
> ---
>  sound/soc/codecs/rt5682s.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index
> ce2e88e066f3..5ad0cc3fab7f 100644
> --- a/sound/soc/codecs/rt5682s.c
> +++ b/sound/soc/codecs/rt5682s.c
> @@ -3310,13 +3310,14 @@ static void rt5682s_i2c_remove(struct i2c_client
> *client)
> 
>  static const struct of_device_id rt5682s_of_match[] = {
>         {.compatible = "realtek,rt5682s"},
> -       {},
> +       {}
>  };
>  MODULE_DEVICE_TABLE(of, rt5682s_of_match);
> 
>  static const struct acpi_device_id rt5682s_acpi_match[] = {
> -       {"RTL5682", 0,},
> -       {},
> +       { "RTL5682" },
> +       { "10EC5682" },
> +       {}

The rt5682s and rt5682 are different codec drivers.
The rt5682s uses RTL5682 APCI ID and rt5682 uses 10EC5682.

>  };
>  MODULE_DEVICE_TABLE(acpi, rt5682s_acpi_match);
> 
> --
> 2.25.1
>
diff mbox series

Patch

diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c
index ce2e88e066f3..5ad0cc3fab7f 100644
--- a/sound/soc/codecs/rt5682s.c
+++ b/sound/soc/codecs/rt5682s.c
@@ -3310,13 +3310,14 @@  static void rt5682s_i2c_remove(struct i2c_client *client)
 
 static const struct of_device_id rt5682s_of_match[] = {
 	{.compatible = "realtek,rt5682s"},
-	{},
+	{}
 };
 MODULE_DEVICE_TABLE(of, rt5682s_of_match);
 
 static const struct acpi_device_id rt5682s_acpi_match[] = {
-	{"RTL5682", 0,},
-	{},
+	{ "RTL5682" },
+	{ "10EC5682" },
+	{}
 };
 MODULE_DEVICE_TABLE(acpi, rt5682s_acpi_match);