[PATCH 23/24] ASoC: codecs: rt5677: Update definition of device_id tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxx>
---
 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





[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux