Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: codecs: rt5670: Fix definition of device_id tables

There shall be no comma after the terminator entry and initializing
fields with 0 for statically defined structs is redundant.

While at it, sort the IDs alphabetically.

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-19-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Cezary Rojewski and committed by
Mark Brown
9aa85f43 a06ef775

+4 -4
+4 -4
sound/soc/codecs/rt5670.c
··· 2880 2880 2881 2881 #ifdef CONFIG_ACPI 2882 2882 static const struct acpi_device_id rt5670_acpi_match[] = { 2883 - { "10EC5670", 0}, 2884 - { "10EC5672", 0}, 2885 - { "10EC5640", 0}, /* quirk */ 2886 - { }, 2883 + { "10EC5640" }, /* quirk */ 2884 + { "10EC5670" }, 2885 + { "10EC5672" }, 2886 + { } 2887 2887 }; 2888 2888 MODULE_DEVICE_TABLE(acpi, rt5670_acpi_match); 2889 2889 #endif