]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fpga: lattice-sysconfig-spi: Fix the terminator entries in ID tables
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 May 2026 08:25:35 +0000 (10:25 +0200)
committerXu Yilun <yilun.xu@linux.intel.com>
Mon, 11 May 2026 15:27:54 +0000 (23:27 +0800)
The whole purpose of the terminator entry is to be the last one.
The trailing comma makes this statement prone to failure. On top
of that the style is used for the entries is unusual. Standardize
this all by moving terminator entries to their own lines and drop
trailing commas.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260508082716.1156192-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/lattice-sysconfig-spi.c

index 44691cfcf50a50acf714968e20ca963a55fc7695..9f9f76af49fbad78f018ba2147b66c779cbe03dd 100644 (file)
@@ -125,7 +125,8 @@ static const struct spi_device_id sysconfig_spi_ids[] = {
        {
                .name = "sysconfig-ecp5",
                .driver_data = (kernel_ulong_t)&ecp5_spi_max_speed_hz,
-       }, {},
+       },
+       {}
 };
 MODULE_DEVICE_TABLE(spi, sysconfig_spi_ids);
 
@@ -134,7 +135,8 @@ static const struct of_device_id sysconfig_of_ids[] = {
        {
                .compatible = "lattice,sysconfig-ecp5",
                .data = &ecp5_spi_max_speed_hz,
-       }, {},
+       },
+       {}
 };
 MODULE_DEVICE_TABLE(of, sysconfig_of_ids);
 #endif /* IS_ENABLED(CONFIG_OF) */