mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
misc: ibmvmc: Use named initializers for vio_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, also simplify the list terminator. This change doesn't introduce differences to the compiled result. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/a451863ca59ab700b6e65b76a17a8b6eb1431e6b.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
14e8c32dbc
commit
a503587751
@@ -2311,8 +2311,8 @@ static void ibmvmc_remove(struct vio_dev *vdev)
|
||||
}
|
||||
|
||||
static struct vio_device_id ibmvmc_device_table[] = {
|
||||
{ "ibm,vmc", "IBM,vmc" },
|
||||
{ "", "" }
|
||||
{ .type = "ibm,vmc", .compat = "IBM,vmc" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(vio, ibmvmc_device_table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user