On 14-07-26, 09:24, Uwe Kleine-König (The Capable Hub) wrote: > 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. > > This patch doesn't modify the compiled array, only its representation in > source form benefits. > > Signed-off-by: Uwe Kleine-König (The Capable Hub) > <[email protected]> > --- > drivers/gpio/gpio-virtio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-virtio.c b/drivers/gpio/gpio-virtio.c > index ed6e0e90fa8a..42871db05ec1 100644 > --- a/drivers/gpio/gpio-virtio.c > +++ b/drivers/gpio/gpio-virtio.c > @@ -646,7 +646,7 @@ static void virtio_gpio_remove(struct virtio_device *vdev) > } > > static const struct virtio_device_id id_table[] = { > - { VIRTIO_ID_GPIO, VIRTIO_DEV_ANY_ID }, > + { .device = VIRTIO_ID_GPIO, .vendor = VIRTIO_DEV_ANY_ID }, > {}, > }; > MODULE_DEVICE_TABLE(virtio, id_table);
Acked-by: Viresh Kumar <[email protected]> -- viresh

