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

ASoC: codecs: rt5682: 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.

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

authored by

Cezary Rojewski and committed by
Mark Brown
6de7c4de 9aa85f43

+3 -3
+3 -3
sound/soc/codecs/rt5682-i2c.c
··· 313 313 314 314 static const struct of_device_id rt5682_of_match[] = { 315 315 {.compatible = "realtek,rt5682i"}, 316 - {}, 316 + { } 317 317 }; 318 318 MODULE_DEVICE_TABLE(of, rt5682_of_match); 319 319 320 320 static const struct acpi_device_id rt5682_acpi_match[] = { 321 - {"10EC5682", 0,}, 322 - {}, 321 + { "10EC5682" }, 322 + { } 323 323 }; 324 324 MODULE_DEVICE_TABLE(acpi, rt5682_acpi_match); 325 325