mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
misc: mei: Use named initializers for acpi_device_id array
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. While touching this array, add a space to the list terminator to make it match the most common usage. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/c189ce8aeae288e9d8bcdfff150957c6f3e6e37d.1784299069.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3e97a4e171
commit
3cd092ac55
@@ -552,11 +552,11 @@ static void vsc_tp_remove(struct spi_device *spi)
|
||||
}
|
||||
|
||||
static const struct acpi_device_id vsc_tp_acpi_ids[] = {
|
||||
{ "INTC1009" }, /* Raptor Lake */
|
||||
{ "INTC1058" }, /* Tiger Lake */
|
||||
{ "INTC1094" }, /* Alder Lake */
|
||||
{ "INTC10D0" }, /* Meteor Lake */
|
||||
{}
|
||||
{ .id = "INTC1009" }, /* Raptor Lake */
|
||||
{ .id = "INTC1058" }, /* Tiger Lake */
|
||||
{ .id = "INTC1094" }, /* Alder Lake */
|
||||
{ .id = "INTC10D0" }, /* Meteor Lake */
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, vsc_tp_acpi_ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user