mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
pci: Make host bridge TypeInfos const
During the QOM migration they were amended with further info but this is no longer the case. All static TypeInfos can be const these days. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ea776abca6
commit
4240abff5a
11 changed files with 29 additions and 29 deletions
|
@ -66,7 +66,7 @@ static void dec_21154_pci_bridge_class_init(ObjectClass *klass, void *data)
|
|||
dc->vmsd = &vmstate_pci_device;
|
||||
}
|
||||
|
||||
static TypeInfo dec_21154_pci_bridge_info = {
|
||||
static const TypeInfo dec_21154_pci_bridge_info = {
|
||||
.name = "dec-21154-p2p-bridge",
|
||||
.parent = TYPE_PCI_DEVICE,
|
||||
.instance_size = sizeof(PCIBridge),
|
||||
|
@ -119,7 +119,7 @@ static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)
|
|||
k->is_bridge = 1;
|
||||
}
|
||||
|
||||
static TypeInfo dec_21154_pci_host_info = {
|
||||
static const TypeInfo dec_21154_pci_host_info = {
|
||||
.name = "dec-21154",
|
||||
.parent = TYPE_PCI_DEVICE,
|
||||
.instance_size = sizeof(PCIDevice),
|
||||
|
@ -133,7 +133,7 @@ static void pci_dec_21154_device_class_init(ObjectClass *klass, void *data)
|
|||
sdc->init = pci_dec_21154_device_init;
|
||||
}
|
||||
|
||||
static TypeInfo pci_dec_21154_device_info = {
|
||||
static const TypeInfo pci_dec_21154_device_info = {
|
||||
.name = "dec-21154-sysbus",
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(DECState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue