Message ID | 20250220112643.3813295-24-cezary.rojewski@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | ASoC: codecs: Update device_id tables for Realtek drivers | expand |
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);
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(-)