mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
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 <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>
This commit is contained in:
parent
d4d5ad6c60
commit
b6615f762c
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user