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:
Uwe Kleine-König (The Capable Hub)
2026-07-17 16:50:55 +02:00
committed by Greg Kroah-Hartman
parent 14e8c32dbc
commit a503587751

View File

@@ -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);