From b6615f762cfa4b68638886d3390369a8545336bc Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Fri, 8 May 2026 10:25:35 +0200 Subject: [PATCH] fpga: lattice-sysconfig-spi: Fix the terminator entries in ID tables 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 Reviewed-by: Xu Yilun Link: https://lore.kernel.org/r/20260508082716.1156192-2-andriy.shevchenko@linux.intel.com Signed-off-by: Xu Yilun --- drivers/fpga/lattice-sysconfig-spi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sysconfig-spi.c index 44691cfcf50a..9f9f76af49fb 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -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) */