]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: codecs: rt286: Update definition of device_id tables
authorCezary Rojewski <cezary.rojewski@intel.com>
Wed, 26 Feb 2025 11:26:10 +0000 (12:26 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 12:51:42 +0000 (12:51 +0000)
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>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250226112612.166989-21-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c

index d0f533120c330fb3223dfb3a4ba5e853ca0af79f..5ad1b9311d11ca972f638bdae30a2d0048079157 100644 (file)
@@ -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