mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-gpu: use virtio_instance_init_common, fixup properties
Switch over to virtio_instance_init_common. Drop duplicate properties in virtio-gpu-pci and virtio-vga as they are properly aliased now. Also drop the indirection via DEFINE_VIRTIO_GPU_PROPERTIES, we don't need it any more as the properties are defined in a single place now. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e18882952e
commit
b3409a3100
4 changed files with 7 additions and 10 deletions
|
@ -871,7 +871,7 @@ static void virtio_gpu_reset(VirtIODevice *vdev)
|
|||
}
|
||||
|
||||
static Property virtio_gpu_properties[] = {
|
||||
DEFINE_VIRTIO_GPU_PROPERTIES(VirtIOGPU, conf),
|
||||
DEFINE_PROP_UINT32("max_outputs", VirtIOGPU, conf.max_outputs, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue