mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -350,7 +350,7 @@ static void e500_host_bridge_class_init(ObjectClass *klass, void *data)
|
|||
dc->desc = "Host bridge";
|
||||
}
|
||||
|
||||
static TypeInfo e500_host_bridge_info = {
|
||||
static const TypeInfo e500_host_bridge_info = {
|
||||
.name = "e500-host-bridge",
|
||||
.parent = TYPE_PCI_DEVICE,
|
||||
.instance_size = sizeof(PCIDevice),
|
||||
|
@ -366,7 +366,7 @@ static void e500_pcihost_class_init(ObjectClass *klass, void *data)
|
|||
dc->vmsd = &vmstate_ppce500_pci;
|
||||
}
|
||||
|
||||
static TypeInfo e500_pcihost_info = {
|
||||
static const TypeInfo e500_pcihost_info = {
|
||||
.name = "e500-pcihost",
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(PPCE500PCIState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue