* [PATCH 01/24] ASoC: codecs: rt1011: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 02/24] ASoC: codecs: rt1015: " Cezary Rojewski
` (24 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1011.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1011.c b/sound/soc/codecs/rt1011.c
index a0e75b03e9dc..71355b7ce7e2 100644
--- a/sound/soc/codecs/rt1011.c
+++ b/sound/soc/codecs/rt1011.c
@@ -2192,15 +2192,15 @@ static const struct regmap_config rt1011_regmap = {
#if defined(CONFIG_OF)
static const struct of_device_id rt1011_of_match[] = {
{ .compatible = "realtek,rt1011", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt1011_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1011_acpi_match[] = {
- {"10EC1011", 0,},
- {},
+ { "10EC1011" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1011_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 02/24] ASoC: codecs: rt1015: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
2025-02-20 11:26 ` [PATCH 01/24] ASoC: codecs: rt1011: Fix definition of device_id tables Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 03/24] ASoC: codecs: rt1016: " Cezary Rojewski
` (23 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1015.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c
index 0f806dde9c39..beed43bb7ca0 100644
--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -1105,15 +1105,15 @@ MODULE_DEVICE_TABLE(i2c, rt1015_i2c_id);
#if defined(CONFIG_OF)
static const struct of_device_id rt1015_of_match[] = {
{ .compatible = "realtek,rt1015", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt1015_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1015_acpi_match[] = {
- {"10EC1015", 0,},
- {},
+ { "10EC1015" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1015_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 03/24] ASoC: codecs: rt1016: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
2025-02-20 11:26 ` [PATCH 01/24] ASoC: codecs: rt1011: Fix definition of device_id tables Cezary Rojewski
2025-02-20 11:26 ` [PATCH 02/24] ASoC: codecs: rt1015: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 04/24] ASoC: codecs: rt1019: " Cezary Rojewski
` (22 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1016.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1016.c b/sound/soc/codecs/rt1016.c
index fed4da23cba2..2cbeb06b15da 100644
--- a/sound/soc/codecs/rt1016.c
+++ b/sound/soc/codecs/rt1016.c
@@ -616,15 +616,15 @@ MODULE_DEVICE_TABLE(i2c, rt1016_i2c_id);
#if defined(CONFIG_OF)
static const struct of_device_id rt1016_of_match[] = {
{ .compatible = "realtek,rt1016", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt1016_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1016_acpi_match[] = {
- {"10EC1016", 0,},
- {},
+ { "10EC1016" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1016_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 04/24] ASoC: codecs: rt1019: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (2 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 03/24] ASoC: codecs: rt1016: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 05/24] ASoC: codecs: rt1305: " Cezary Rojewski
` (21 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1019.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1019.c b/sound/soc/codecs/rt1019.c
index d989d06a2614..2587e3742499 100644
--- a/sound/soc/codecs/rt1019.c
+++ b/sound/soc/codecs/rt1019.c
@@ -547,14 +547,14 @@ MODULE_DEVICE_TABLE(i2c, rt1019_i2c_id);
static const struct of_device_id rt1019_of_match[] __maybe_unused = {
{ .compatible = "realtek,rt1019", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt1019_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1019_acpi_match[] = {
- { "10EC1019", 0},
- { },
+ { "10EC1019" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1019_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 05/24] ASoC: codecs: rt1305: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (3 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 04/24] ASoC: codecs: rt1019: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 06/24] ASoC: codecs: rt1308: " Cezary Rojewski
` (20 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1305.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c
index c2b55be8d165..b4e10ba00dca 100644
--- a/sound/soc/codecs/rt1305.c
+++ b/sound/soc/codecs/rt1305.c
@@ -973,9 +973,9 @@ MODULE_DEVICE_TABLE(of, rt1305_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1305_acpi_match[] = {
- {"10EC1305", 0,},
- {"10EC1306", 0,},
- {},
+ { "10EC1305" },
+ { "10EC1306" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1305_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 06/24] ASoC: codecs: rt1308: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (4 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 05/24] ASoC: codecs: rt1305: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 14:11 ` Andy Shevchenko
2025-02-20 11:26 ` [PATCH 07/24] ASoC: codecs: rt1318: " Cezary Rojewski
` (19 subsequent siblings)
25 siblings, 1 reply; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1308.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1308.c b/sound/soc/codecs/rt1308.c
index b366338cea71..a9ba66228301 100644
--- a/sound/soc/codecs/rt1308.c
+++ b/sound/soc/codecs/rt1308.c
@@ -781,15 +781,15 @@ static const struct regmap_config rt1308_regmap = {
#ifdef CONFIG_OF
static const struct of_device_id rt1308_of_match[] = {
{ .compatible = "realtek,rt1308", },
- { },
+ { }
};
MODULE_DEVICE_TABLE(of, rt1308_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1308_acpi_match[] = {
- { "10EC1308", 0, },
- { },
+ { "10EC1308" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1308_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* Re: [PATCH 06/24] ASoC: codecs: rt1308: Fix definition of device_id tables
2025-02-20 11:26 ` [PATCH 06/24] ASoC: codecs: rt1308: " Cezary Rojewski
@ 2025-02-20 14:11 ` Andy Shevchenko
2025-02-20 15:37 ` Cezary Rojewski
0 siblings, 1 reply; 37+ messages in thread
From: Andy Shevchenko @ 2025-02-20 14:11 UTC (permalink / raw)
To: Cezary Rojewski
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On Thu, Feb 20, 2025 at 12:26:25PM +0100, Cezary Rojewski wrote:
> There shall be no comma after the terminator entry and initializing
> fields with 0 for statically defined structs is redundant.
...
> + { }
> + {}
I think you want a bit of consistency in the style of the terminator.
Preferable (by majority) is with space inside, but some are okay without it.
I have no preferences, just one style for all in the same driver.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 06/24] ASoC: codecs: rt1308: Fix definition of device_id tables
2025-02-20 14:11 ` Andy Shevchenko
@ 2025-02-20 15:37 ` Cezary Rojewski
0 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 15:37 UTC (permalink / raw)
To: Andy Shevchenko
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On 2025-02-20 3:11 PM, Andy Shevchenko wrote:
> On Thu, Feb 20, 2025 at 12:26:25PM +0100, Cezary Rojewski wrote:
>> There shall be no comma after the terminator entry and initializing
>> fields with 0 for statically defined structs is redundant.
>
> ...
>
>> + { }
>
>> + {}
>
> I think you want a bit of consistency in the style of the terminator.
> Preferable (by majority) is with space inside, but some are okay without it.
> I have no preferences, just one style for all in the same driver.
Ack. What happened is: in some cases I just updated the line according
to the standard whereas in others I did remove ',' and other stuff while
aligning with my spacing preference. Will pick one for v2.
Czarek
^ permalink raw reply [flat|nested] 37+ messages in thread
* [PATCH 07/24] ASoC: codecs: rt1318: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (5 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 06/24] ASoC: codecs: rt1308: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 08/24] ASoC: codecs: rt274: " Cezary Rojewski
` (18 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1318.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1318.c b/sound/soc/codecs/rt1318.c
index e12b1e96a53a..69cd32acbe7c 100644
--- a/sound/soc/codecs/rt1318.c
+++ b/sound/soc/codecs/rt1318.c
@@ -1147,14 +1147,14 @@ MODULE_DEVICE_TABLE(i2c, rt1318_i2c_id);
static const struct of_device_id rt1318_of_match[] = {
{ .compatible = "realtek,rt1318", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt1318_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1318_acpi_match[] = {
- { "10EC1318", 0},
- { },
+ { "10EC1318" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1318_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 08/24] ASoC: codecs: rt274: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (6 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 07/24] ASoC: codecs: rt1318: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 09/24] ASoC: codecs: rt5514: " Cezary Rojewski
` (17 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt274.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt274.c b/sound/soc/codecs/rt274.c
index bd61a257d7b5..15bbd920fda2 100644
--- a/sound/soc/codecs/rt274.c
+++ b/sound/soc/codecs/rt274.c
@@ -1091,7 +1091,7 @@ static const struct regmap_config rt274_regmap = {
#ifdef CONFIG_OF
static const struct of_device_id rt274_of_match[] = {
{.compatible = "realtek,rt274"},
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt274_of_match);
#endif
@@ -1104,9 +1104,9 @@ MODULE_DEVICE_TABLE(i2c, rt274_i2c_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt274_acpi_match[] = {
- { "10EC0274", 0 },
- { "INT34C2", 0 },
- {},
+ { "10EC0274" },
+ { "INT34C2" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt274_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 09/24] ASoC: codecs: rt5514: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (7 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 08/24] ASoC: codecs: rt274: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 10/24] ASoC: codecs: rt5640: " Cezary Rojewski
` (16 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5514.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index 2b3c0f9e178c..69141a5773bb 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -1207,15 +1207,15 @@ MODULE_DEVICE_TABLE(i2c, rt5514_i2c_id);
#if defined(CONFIG_OF)
static const struct of_device_id rt5514_of_match[] = {
{ .compatible = "realtek,rt5514", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5514_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5514_acpi_match[] = {
- { "10EC5514", 0},
- {},
+ { "10EC5514" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5514_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 10/24] ASoC: codecs: rt5640: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (8 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 09/24] ASoC: codecs: rt5514: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 11/24] ASoC: codecs: rt5645: " Cezary Rojewski
` (15 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5640.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 82db9dceddb6..d41c9df353d2 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2963,19 +2963,19 @@ MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id);
static const struct of_device_id rt5640_of_match[] = {
{ .compatible = "realtek,rt5639", },
{ .compatible = "realtek,rt5640", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5640_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5640_acpi_match[] = {
- { "INT33CA", 0 },
- { "10EC3276", 0 },
- { "10EC5640", 0 },
- { "10EC5642", 0 },
- { "INTCCFFD", 0 },
- { },
+ { "INT33CA" },
+ { "10EC3276" },
+ { "10EC5640" },
+ { "10EC5642" },
+ { "INTCCFFD" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5640_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 11/24] ASoC: codecs: rt5645: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (9 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 10/24] ASoC: codecs: rt5640: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 12/24] ASoC: codecs: rt5651: " Cezary Rojewski
` (14 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5645.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 51187b1e0ed2..794a81be6ef7 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3660,12 +3660,12 @@ MODULE_DEVICE_TABLE(of, rt5645_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5645_acpi_match[] = {
- { "10EC5645", 0 },
- { "10EC5648", 0 },
- { "10EC5650", 0 },
- { "10EC5640", 0 },
- { "10EC3270", 0 },
- {},
+ { "10EC5645" },
+ { "10EC5648" },
+ { "10EC5650" },
+ { "10EC5640" },
+ { "10EC3270" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5645_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 12/24] ASoC: codecs: rt5651: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (10 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 11/24] ASoC: codecs: rt5645: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 13/24] ASoC: codecs: rt5659: " Cezary Rojewski
` (13 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/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..a4ea6c47617a 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 },
- { },
+ { "10EC5651" },
+ { "10EC5640" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5651_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 13/24] ASoC: codecs: rt5659: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (11 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 12/24] ASoC: codecs: rt5651: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 14/24] ASoC: codecs: rt5660: " Cezary Rojewski
` (12 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5659.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c
index a2652fa6e1d7..29f521716389 100644
--- a/sound/soc/codecs/rt5659.c
+++ b/sound/soc/codecs/rt5659.c
@@ -4315,16 +4315,16 @@ static void rt5659_i2c_shutdown(struct i2c_client *client)
static const struct of_device_id rt5659_of_match[] = {
{ .compatible = "realtek,rt5658", },
{ .compatible = "realtek,rt5659", },
- { },
+ { }
};
MODULE_DEVICE_TABLE(of, rt5659_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5659_acpi_match[] = {
- { "10EC5658", 0, },
- { "10EC5659", 0, },
- { },
+ { "10EC5658" },
+ { "10EC5659" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5659_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 14/24] ASoC: codecs: rt5660: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (12 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 13/24] ASoC: codecs: rt5659: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 14:13 ` Andy Shevchenko
2025-02-20 11:26 ` [PATCH 15/24] ASoC: codecs: rt5663: " Cezary Rojewski
` (11 subsequent siblings)
25 siblings, 1 reply; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5660.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c
index 3ac41d2c279b..fe8c27297599 100644
--- a/sound/soc/codecs/rt5660.c
+++ b/sound/soc/codecs/rt5660.c
@@ -1232,16 +1232,16 @@ MODULE_DEVICE_TABLE(i2c, rt5660_i2c_id);
#ifdef CONFIG_OF
static const struct of_device_id rt5660_of_match[] = {
{ .compatible = "realtek,rt5660", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5660_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5660_acpi_match[] = {
- { "10EC5660", 0 },
- { "10EC3277", 0 },
- { },
+ { "10EC5660" },
+ { "10EC3277" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5660_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* Re: [PATCH 14/24] ASoC: codecs: rt5660: Fix definition of device_id tables
2025-02-20 11:26 ` [PATCH 14/24] ASoC: codecs: rt5660: " Cezary Rojewski
@ 2025-02-20 14:13 ` Andy Shevchenko
2025-02-20 15:42 ` Cezary Rojewski
0 siblings, 1 reply; 37+ messages in thread
From: Andy Shevchenko @ 2025-02-20 14:13 UTC (permalink / raw)
To: Cezary Rojewski
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On Thu, Feb 20, 2025 at 12:26:33PM +0100, Cezary Rojewski wrote:
> There shall be no comma after the terminator entry and initializing
> fields with 0 for statically defined structs is redundant.
...
> static const struct acpi_device_id rt5660_acpi_match[] = {
> - { "10EC5660", 0 },
> - { "10EC3277", 0 },
> - { },
> + { "10EC5660" },
> + { "10EC3277" },
> + {}
> };
While at it, can you sort them alphabetically?
Also, a side note: perhaps at some point you are going to remove those ugly
ifdeffery around them along with unuseful ACPI_PTR() / of_match_ptr() calls.
With that in some cases we can get rid of unneeded of.h and/or acpi.h inclusions
(the ID table definitions come from mod_devicetable.h).
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 14/24] ASoC: codecs: rt5660: Fix definition of device_id tables
2025-02-20 14:13 ` Andy Shevchenko
@ 2025-02-20 15:42 ` Cezary Rojewski
0 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 15:42 UTC (permalink / raw)
To: Andy Shevchenko
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On 2025-02-20 3:13 PM, Andy Shevchenko wrote:
> On Thu, Feb 20, 2025 at 12:26:33PM +0100, Cezary Rojewski wrote:
>> There shall be no comma after the terminator entry and initializing
>> fields with 0 for statically defined structs is redundant.
>
> ...
>
>> static const struct acpi_device_id rt5660_acpi_match[] = {
>> - { "10EC5660", 0 },
>> - { "10EC3277", 0 },
>> - { },
>> + { "10EC5660" },
>> + { "10EC3277" },
>> + {}
>> };
>
> While at it, can you sort them alphabetically?
Ack.
> Also, a side note: perhaps at some point you are going to remove those ugly
> ifdeffery around them along with unuseful ACPI_PTR() / of_match_ptr() calls.
> With that in some cases we can get rid of unneeded of.h and/or acpi.h inclusions
> (the ID table definitions come from mod_devicetable.h).
I do not see a reason not to. We'll do so in a separate series to not
mix the subjects though. This will probably also scale beyond 'just' rt*.
Czarek
^ permalink raw reply [flat|nested] 37+ messages in thread
* [PATCH 15/24] ASoC: codecs: rt5663: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (13 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 14/24] ASoC: codecs: rt5660: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 16/24] ASoC: codecs: rt5665: " Cezary Rojewski
` (10 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5663.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c
index 9d32debd3689..aa684d62bec6 100644
--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -3315,15 +3315,15 @@ MODULE_DEVICE_TABLE(i2c, rt5663_i2c_id);
#if defined(CONFIG_OF)
static const struct of_device_id rt5663_of_match[] = {
{ .compatible = "realtek,rt5663", },
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5663_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5663_acpi_match[] = {
- { "10EC5663", 0},
- {},
+ { "10EC5663" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5663_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 16/24] ASoC: codecs: rt5665: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (14 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 15/24] ASoC: codecs: rt5663: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 17/24] ASoC: codecs: rt5668: " Cezary Rojewski
` (9 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5665.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 47df14ba5278..61d098a57b3b 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4949,16 +4949,16 @@ static void rt5665_i2c_shutdown(struct i2c_client *client)
static const struct of_device_id rt5665_of_match[] = {
{.compatible = "realtek,rt5665"},
{.compatible = "realtek,rt5666"},
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5665_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5665_acpi_match[] = {
- {"10EC5665", 0,},
- {"10EC5666", 0,},
- {},
+ { "10EC5665" },
+ { "10EC5666" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5665_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 17/24] ASoC: codecs: rt5668: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (15 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 16/24] ASoC: codecs: rt5665: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 18/24] ASoC: codecs: rt5670: " Cezary Rojewski
` (8 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5668.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c
index 494ca3ce9b96..463aa81dce25 100644
--- a/sound/soc/codecs/rt5668.c
+++ b/sound/soc/codecs/rt5668.c
@@ -2598,15 +2598,15 @@ static void rt5668_i2c_shutdown(struct i2c_client *client)
#ifdef CONFIG_OF
static const struct of_device_id rt5668_of_match[] = {
{.compatible = "realtek,rt5668b"},
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5668_of_match);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5668_acpi_match[] = {
- {"10EC5668", 0,},
- {},
+ { "10EC5668" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5668_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 18/24] ASoC: codecs: rt5670: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (16 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 17/24] ASoC: codecs: rt5668: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 19/24] ASoC: codecs: rt5682: " Cezary Rojewski
` (7 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5670.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 30bf96c35b58..f40c98920ce1 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2880,10 +2880,10 @@ MODULE_DEVICE_TABLE(i2c, rt5670_i2c_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5670_acpi_match[] = {
- { "10EC5670", 0},
- { "10EC5672", 0},
- { "10EC5640", 0}, /* quirk */
- { },
+ { "10EC5670" },
+ { "10EC5672" },
+ { "10EC5640" }, /* quirk */
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5670_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 19/24] ASoC: codecs: rt5682: Fix definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (17 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 18/24] ASoC: codecs: rt5670: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 20/24] ASoC: codecs: rt1015p: Update " Cezary Rojewski
` (6 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5682-i2c.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index a8820435d1e0..fa950811b3a7 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -313,13 +313,13 @@ static void rt5682_i2c_remove(struct i2c_client *client)
static const struct of_device_id rt5682_of_match[] = {
{.compatible = "realtek,rt5682i"},
- {},
+ {}
};
MODULE_DEVICE_TABLE(of, rt5682_of_match);
static const struct acpi_device_id rt5682_acpi_match[] = {
- {"10EC5682", 0,},
- {},
+ { "10EC5682" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5682_acpi_match);
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (18 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 19/24] ASoC: codecs: rt5682: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-21 2:38 ` Oder Chiou
2025-02-20 11:26 ` [PATCH 21/24] ASoC: codecs: rt286: " Cezary Rojewski
` (5 subsequent siblings)
25 siblings, 1 reply; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt1015p.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
index 44e7fe3c32da..33917438196f 100644
--- a/sound/soc/codecs/rt1015p.c
+++ b/sound/soc/codecs/rt1015p.c
@@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1015p_acpi_match[] = {
- { "RTL1015", 0},
- { "RTL1019", 0},
- { },
+ { "RTL1015" },
+ { "RTL1019" },
+ { "10EC1015" },
+ { "10EC1019" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* RE: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
2025-02-20 11:26 ` [PATCH 20/24] ASoC: codecs: rt1015p: Update " Cezary Rojewski
@ 2025-02-21 2:38 ` Oder Chiou
2025-02-26 9:42 ` Cezary Rojewski
0 siblings, 1 reply; 37+ messages in thread
From: Oder Chiou @ 2025-02-21 2:38 UTC (permalink / raw)
To: 'Cezary Rojewski', broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Flove(HsinFu), andriy.shevchenko@linux.intel.com,
Shuming [范書銘], Jack Yu,
Derek [方德義]
> -----Original Message-----
> From: Cezary Rojewski <cezary.rojewski@intel.com>
> Sent: Thursday, February 20, 2025 7:27 PM
> To: broonie@kernel.org
> Cc: tiwai@suse.com; perex@perex.cz; amadeuszx.slawinski@linux.intel.com;
> linux-sound@vger.kernel.org; Oder Chiou <oder_chiou@realtek.com>;
> Flove(HsinFu) <flove@realtek.com>; andriy.shevchenko@linux.intel.com;
> Cezary Rojewski <cezary.rojewski@intel.com>
> Subject: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id
> tables
>
>
> External mail : This email originated from outside the organization. Do not
> reply, click links, or open attachments unless you recognize the sender and
> know the content is safe.
>
>
>
> 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/rt1015p.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
> index 44e7fe3c32da..33917438196f 100644
> --- a/sound/soc/codecs/rt1015p.c
> +++ b/sound/soc/codecs/rt1015p.c
> @@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
>
> #ifdef CONFIG_ACPI
> static const struct acpi_device_id rt1015p_acpi_match[] = {
> - { "RTL1015", 0},
> - { "RTL1019", 0},
> - { },
> + { "RTL1015" },
> + { "RTL1019" },
> + { "10EC1015" },
> + { "10EC1019" },
> + {}
There are different settings for RTL1015, RTL1019, 10EC1015, and 10EC1019.
RTL1015 and RTL1019 are used for powering up and down via the GPIO.
10EC1015 and 10EC1019 are used for the I2C-controlled driver.
Therefore 10EC1015 and 10EC1019 should be removed.
> };
> MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
> #endif
> --
> 2.25.1
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
2025-02-21 2:38 ` Oder Chiou
@ 2025-02-26 9:42 ` Cezary Rojewski
2025-02-27 5:11 ` Oder Chiou
0 siblings, 1 reply; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-26 9:42 UTC (permalink / raw)
To: Oder Chiou, broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Flove(HsinFu), andriy.shevchenko@linux.intel.com,
Shuming [范書銘], Jack Yu,
Derek [方德義]
On 2025-02-21 3:38 AM, Oder Chiou wrote:
>> -----Original Message-----
>> From: Cezary Rojewski <cezary.rojewski@intel.com>
>> Sent: Thursday, February 20, 2025 7:27 PM
>> To: broonie@kernel.org
>> Cc: tiwai@suse.com; perex@perex.cz; amadeuszx.slawinski@linux.intel.com;
>> linux-sound@vger.kernel.org; Oder Chiou <oder_chiou@realtek.com>;
>> Flove(HsinFu) <flove@realtek.com>; andriy.shevchenko@linux.intel.com;
>> Cezary Rojewski <cezary.rojewski@intel.com>
>> Subject: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id
>> tables
>>
>>
>> External mail : This email originated from outside the organization. Do not
>> reply, click links, or open attachments unless you recognize the sender and
>> know the content is safe.
>>
>>
>>
>> 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/rt1015p.c | 8 +++++---
>> 1 file changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
>> index 44e7fe3c32da..33917438196f 100644
>> --- a/sound/soc/codecs/rt1015p.c
>> +++ b/sound/soc/codecs/rt1015p.c
>> @@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
>>
>> #ifdef CONFIG_ACPI
>> static const struct acpi_device_id rt1015p_acpi_match[] = {
>> - { "RTL1015", 0},
>> - { "RTL1019", 0},
>> - { },
>> + { "RTL1015" },
>> + { "RTL1019" },
>> + { "10EC1015" },
>> + { "10EC1019" },
>> + {}
>
> There are different settings for RTL1015, RTL1019, 10EC1015, and 10EC1019.
> RTL1015 and RTL1019 are used for powering up and down via the GPIO.
> 10EC1015 and 10EC1019 are used for the I2C-controlled driver.
> Therefore 10EC1015 and 10EC1019 should be removed.
Sorry for the delay in response and thank for you the feedback.
I'm surprised this hasn't come up earlier in the discussion. I'll
probably cut off problematic patches so that majority can be merged.
It's important to have some follow up though, on the subject you
mentioned. Correct me if I'm wrong but from the .c files it seems:
for DT/ARM rt1015 & rt1015p are represented by:
.compatible = "realtek,rt1015"
.compatible = "realtek,rt1015p"
for ACPI/x86 rt1015 & rt1015p are represented by:
"10EC1015"
"RTL1015"
The first pair is nice and clean, the second is confusing and error
prone. Do you know where the second pair originated from?
Kind regards,
Czarek
^ permalink raw reply [flat|nested] 37+ messages in thread* RE: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
2025-02-26 9:42 ` Cezary Rojewski
@ 2025-02-27 5:11 ` Oder Chiou
2025-02-27 12:43 ` Cezary Rojewski
0 siblings, 1 reply; 37+ messages in thread
From: Oder Chiou @ 2025-02-27 5:11 UTC (permalink / raw)
To: 'Cezary Rojewski', broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Flove(HsinFu), andriy.shevchenko@linux.intel.com,
Shuming [范書銘], Jack Yu,
Derek [方德義]
> -----Original Message-----
> From: Cezary Rojewski <cezary.rojewski@intel.com>
> Sent: Wednesday, February 26, 2025 5:42 PM
> To: Oder Chiou <oder_chiou@realtek.com>; broonie@kernel.org
> Cc: tiwai@suse.com; perex@perex.cz; amadeuszx.slawinski@linux.intel.com;
> linux-sound@vger.kernel.org; Flove(HsinFu) <flove@realtek.com>;
> andriy.shevchenko@linux.intel.com; Shuming [范書銘]
> <shumingf@realtek.com>; Jack Yu <jack.yu@realtek.com>; Derek [方德義]
> <derek.fang@realtek.com>
> Subject: Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of
> device_id tables
>
>
> External mail : This email originated from outside the organization. Do not
> reply, click links, or open attachments unless you recognize the sender and
> know the content is safe.
>
>
>
> On 2025-02-21 3:38 AM, Oder Chiou wrote:
> >> -----Original Message-----
> >> From: Cezary Rojewski <cezary.rojewski@intel.com>
> >> Sent: Thursday, February 20, 2025 7:27 PM
> >> To: broonie@kernel.org
> >> Cc: tiwai@suse.com; perex@perex.cz;
> amadeuszx.slawinski@linux.intel.com;
> >> linux-sound@vger.kernel.org; Oder Chiou <oder_chiou@realtek.com>;
> >> Flove(HsinFu) <flove@realtek.com>; andriy.shevchenko@linux.intel.com;
> >> Cezary Rojewski <cezary.rojewski@intel.com>
> >> Subject: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of
> device_id
> >> tables
> >>
> >>
> >> External mail : This email originated from outside the organization. Do not
> >> reply, click links, or open attachments unless you recognize the sender and
> >> know the content is safe.
> >>
> >>
> >>
> >> 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/rt1015p.c | 8 +++++---
> >> 1 file changed, 5 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
> >> index 44e7fe3c32da..33917438196f 100644
> >> --- a/sound/soc/codecs/rt1015p.c
> >> +++ b/sound/soc/codecs/rt1015p.c
> >> @@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
> >>
> >> #ifdef CONFIG_ACPI
> >> static const struct acpi_device_id rt1015p_acpi_match[] = {
> >> - { "RTL1015", 0},
> >> - { "RTL1019", 0},
> >> - { },
> >> + { "RTL1015" },
> >> + { "RTL1019" },
> >> + { "10EC1015" },
> >> + { "10EC1019" },
> >> + {}
> >
> > There are different settings for RTL1015, RTL1019, 10EC1015, and 10EC1019.
> > RTL1015 and RTL1019 are used for powering up and down via the GPIO.
> > 10EC1015 and 10EC1019 are used for the I2C-controlled driver.
> > Therefore 10EC1015 and 10EC1019 should be removed.
>
> Sorry for the delay in response and thank for you the feedback.
>
> I'm surprised this hasn't come up earlier in the discussion. I'll
> probably cut off problematic patches so that majority can be merged.
> It's important to have some follow up though, on the subject you
> mentioned. Correct me if I'm wrong but from the .c files it seems:
>
> for DT/ARM rt1015 & rt1015p are represented by:
> .compatible = "realtek,rt1015"
> .compatible = "realtek,rt1015p"
>
> for ACPI/x86 rt1015 & rt1015p are represented by:
> "10EC1015"
> "RTL1015"
>
> The first pair is nice and clean, the second is confusing and error
> prone. Do you know where the second pair originated from?
10EC is defined by the PCI domain, and RTL is defined by the PNP domain.
To distinguish these, 1015, 1019, and 5682 use different drivers,
with the RTL prefix being used to instead of the p postfix in the DT.
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
2025-02-27 5:11 ` Oder Chiou
@ 2025-02-27 12:43 ` Cezary Rojewski
0 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-27 12:43 UTC (permalink / raw)
To: Oder Chiou, broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Flove(HsinFu), andriy.shevchenko@linux.intel.com,
Shuming [范書銘], Jack Yu,
Derek [方德義]
On 2025-02-27 6:11 AM, Oder Chiou wrote:
>> -----Original Message-----
>> From: Cezary Rojewski <cezary.rojewski@intel.com>
>> Sent: Wednesday, February 26, 2025 5:42 PM
>> To: Oder Chiou <oder_chiou@realtek.com>; broonie@kernel.org
>> Cc: tiwai@suse.com; perex@perex.cz; amadeuszx.slawinski@linux.intel.com;
>> linux-sound@vger.kernel.org; Flove(HsinFu) <flove@realtek.com>;
>> andriy.shevchenko@linux.intel.com; Shuming [范書銘]
>> <shumingf@realtek.com>; Jack Yu <jack.yu@realtek.com>; Derek [方德義]
>> <derek.fang@realtek.com>
>> Subject: Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of
>> device_id tables
...
>>>> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
>>>> index 44e7fe3c32da..33917438196f 100644
>>>> --- a/sound/soc/codecs/rt1015p.c
>>>> +++ b/sound/soc/codecs/rt1015p.c
>>>> @@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
>>>>
>>>> #ifdef CONFIG_ACPI
>>>> static const struct acpi_device_id rt1015p_acpi_match[] = {
>>>> - { "RTL1015", 0},
>>>> - { "RTL1019", 0},
>>>> - { },
>>>> + { "RTL1015" },
>>>> + { "RTL1019" },
>>>> + { "10EC1015" },
>>>> + { "10EC1019" },
>>>> + {}
>>>
>>> There are different settings for RTL1015, RTL1019, 10EC1015, and 10EC1019.
>>> RTL1015 and RTL1019 are used for powering up and down via the GPIO.
>>> 10EC1015 and 10EC1019 are used for the I2C-controlled driver.
>>> Therefore 10EC1015 and 10EC1019 should be removed.
>>
>> Sorry for the delay in response and thank for you the feedback.
>>
>> I'm surprised this hasn't come up earlier in the discussion. I'll
>> probably cut off problematic patches so that majority can be merged.
>> It's important to have some follow up though, on the subject you
>> mentioned. Correct me if I'm wrong but from the .c files it seems:
>>
>> for DT/ARM rt1015 & rt1015p are represented by:
>> .compatible = "realtek,rt1015"
>> .compatible = "realtek,rt1015p"
>>
>> for ACPI/x86 rt1015 & rt1015p are represented by:
>> "10EC1015"
>> "RTL1015"
>>
>> The first pair is nice and clean, the second is confusing and error
>> prone. Do you know where the second pair originated from?
> 10EC is defined by the PCI domain, and RTL is defined by the PNP domain.
> To distinguish these, 1015, 1019, and 5682 use different drivers,
> with the RTL prefix being used to instead of the p postfix in the DT.
Thank you for the reminder. I'm aware of the origins for PCI/PNP
prefixes, though. In fact, there is more to it - OBDA [1] and ALG [2].
The idea is to choose one _recommended path_ and follow it. If the
desire is to name future chips using suffixes such as -p or -s, then
perhaps PNP-based naming should have been selected instead. Another
option would be to change the hardware naming scheme e.g: '1016' instead
of '1015p'.
If the latter is not an option, why not:
RTL1015
RTL1015P
on ACPI/x86 side? Aligns with ARM equivalent nicely, no?
[1]: https://uefi.org/ACPI_ID_List?acpi_search=realtek
[2]: https://uefi.org/PNP_ID_List?pnp_search=realtek
Kind regards,
Czarek
^ permalink raw reply [flat|nested] 37+ messages in thread
* [PATCH 21/24] ASoC: codecs: rt286: Update definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (19 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 20/24] ASoC: codecs: rt1015p: Update " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 22/24] ASoC: codecs: rt298: " Cezary Rojewski
` (4 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt286.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c
index d0f533120c33..c187e580c0ca 100644
--- a/sound/soc/codecs/rt286.c
+++ b/sound/soc/codecs/rt286.c
@@ -1083,8 +1083,9 @@ MODULE_DEVICE_TABLE(i2c, rt286_i2c_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt286_acpi_match[] = {
- { "INT343A", 0 },
- {},
+ { "10EC0286" },
+ { "INT343A" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt286_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 22/24] ASoC: codecs: rt298: Update definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (20 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 21/24] ASoC: codecs: rt286: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 23/24] ASoC: codecs: rt5677: " Cezary Rojewski
` (3 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt298.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index 13aef6c5e91c..37c234f1109a 100644
--- a/sound/soc/codecs/rt298.c
+++ b/sound/soc/codecs/rt298.c
@@ -1144,8 +1144,9 @@ MODULE_DEVICE_TABLE(i2c, rt298_i2c_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt298_acpi_match[] = {
- { "INT343A", 0 },
- {},
+ { "10EC0298" },
+ { "INT343A" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt298_acpi_match);
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 23/24] ASoC: codecs: rt5677: Update definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (21 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 22/24] ASoC: codecs: rt298: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 24/24] ASoC: codecs: rt5682s: " Cezary Rojewski
` (2 subsequent siblings)
25 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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/rt5677-spi.c | 5 +++--
sound/soc/codecs/rt5677.c | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c
index d91a2184f67c..3b9c23aa255f 100644
--- a/sound/soc/codecs/rt5677-spi.c
+++ b/sound/soc/codecs/rt5677-spi.c
@@ -617,8 +617,9 @@ static int rt5677_spi_probe(struct spi_device *spi)
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt5677_spi_acpi_id[] = {
- { "RT5677AA", 0 },
- { }
+ { "RT5677AA" },
+ { "10EC5677" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id);
#endif
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 0e70a3ab42b5..d9b173ba7f6e 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -5202,7 +5202,8 @@ MODULE_DEVICE_TABLE(of, rt5677_of_match);
static const struct acpi_device_id rt5677_acpi_match[] = {
{ "RT5677CE", RT5677 },
- { }
+ { "10EC5677", RT5677 },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5677_acpi_match);
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* [PATCH 24/24] ASoC: codecs: rt5682s: Update definition of device_id tables
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (22 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 23/24] ASoC: codecs: rt5677: " Cezary Rojewski
@ 2025-02-20 11:26 ` Cezary Rojewski
2025-02-21 2:08 ` Shuming [范書銘]
2025-02-20 14:09 ` [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Andy Shevchenko
2025-02-20 14:15 ` Andy Shevchenko
25 siblings, 1 reply; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-20 11:26 UTC (permalink / raw)
To: broonie
Cc: tiwai, perex, amadeuszx.slawinski, linux-sound, oder_chiou, flove,
andriy.shevchenko, Cezary Rojewski
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" },
+ {}
};
MODULE_DEVICE_TABLE(acpi, rt5682s_acpi_match);
--
2.25.1
^ permalink raw reply related [flat|nested] 37+ messages in thread* RE: [PATCH 24/24] ASoC: codecs: rt5682s: Update definition of device_id tables
2025-02-20 11:26 ` [PATCH 24/24] ASoC: codecs: rt5682s: " Cezary Rojewski
@ 2025-02-21 2:08 ` Shuming [范書銘]
2025-02-26 9:47 ` Cezary Rojewski
0 siblings, 1 reply; 37+ messages in thread
From: Shuming [范書銘] @ 2025-02-21 2:08 UTC (permalink / raw)
To: Cezary Rojewski, broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Oder Chiou, Flove(HsinFu), andriy.shevchenko@linux.intel.com
> 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
>
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 24/24] ASoC: codecs: rt5682s: Update definition of device_id tables
2025-02-21 2:08 ` Shuming [范書銘]
@ 2025-02-26 9:47 ` Cezary Rojewski
0 siblings, 0 replies; 37+ messages in thread
From: Cezary Rojewski @ 2025-02-26 9:47 UTC (permalink / raw)
To: Shuming [范書銘], broonie@kernel.org
Cc: tiwai@suse.com, perex@perex.cz,
amadeuszx.slawinski@linux.intel.com, linux-sound@vger.kernel.org,
Oder Chiou, Flove(HsinFu), andriy.shevchenko@linux.intel.com
On 2025-02-21 3:08 AM, Shuming [范書銘] wrote:
>> 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.
Sorry for the delay in my response. Thank you for the review, Shuming!
I have similar thoughts as for patch 20/24 and rt1015p case, reviewed by
Chiou. To not dilute the subject too much, I'd suggest continue the
"confusing IDs" discussion there. For v2, this patch will be removed to
not block the merge.
Kind regards,
Czarek
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (23 preceding siblings ...)
2025-02-20 11:26 ` [PATCH 24/24] ASoC: codecs: rt5682s: " Cezary Rojewski
@ 2025-02-20 14:09 ` Andy Shevchenko
2025-02-20 14:15 ` Andy Shevchenko
25 siblings, 0 replies; 37+ messages in thread
From: Andy Shevchenko @ 2025-02-20 14:09 UTC (permalink / raw)
To: Cezary Rojewski
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On Thu, Feb 20, 2025 at 12:26:19PM +0100, Cezary Rojewski wrote:
> The series aims to streamline the formatting for ACPI IDs so that a
> single pattern can be used to identify the device.
>
> Work implicitly suggested by Andy Shevchenko - reading and learning from
> number of his reviews on the Linux mailing lists.
>
> Several formats do exists, however, after technical discussion PCI-based
> format has been selected as the recommended one. For Realtek devices, it
> is going to be 10ECxxxx where 10EC unambiguously identifies Realtek
> company whereas the following 4 hexes specify the PART_ID i.e.: the
> device.
> While at it, there shall be no comma after the terminator entry and
> initializing fields with 0 for statically defined structs is redundant.
I should add that the latter one (removing '0':s) is basically Uwe's idea
in a long-term conversion driver_data to become a const void * instead of
kernel_ulong_t (in some cases).
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 37+ messages in thread* Re: [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
` (24 preceding siblings ...)
2025-02-20 14:09 ` [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Andy Shevchenko
@ 2025-02-20 14:15 ` Andy Shevchenko
25 siblings, 0 replies; 37+ messages in thread
From: Andy Shevchenko @ 2025-02-20 14:15 UTC (permalink / raw)
To: Cezary Rojewski
Cc: broonie, tiwai, perex, amadeuszx.slawinski, linux-sound,
oder_chiou, flove
On Thu, Feb 20, 2025 at 12:26:19PM +0100, Cezary Rojewski wrote:
> The series aims to streamline the formatting for ACPI IDs so that a
> single pattern can be used to identify the device.
>
> Work implicitly suggested by Andy Shevchenko - reading and learning from
> number of his reviews on the Linux mailing lists.
>
> Several formats do exists, however, after technical discussion PCI-based
> format has been selected as the recommended one. For Realtek devices, it
> is going to be 10ECxxxx where 10EC unambiguously identifies Realtek
> company whereas the following 4 hexes specify the PART_ID i.e.: the
> device.
>
> While at it, there shall be no comma after the terminator entry and
> initializing fields with 0 for statically defined structs is redundant.
I briefly looked at them all and found two issues I commented on in a couple of
cases as an example (you need to go through whole series) and one side note.
If you address those comments, I will give you a tag.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 37+ messages in thread