hw/pci-host/bonito: Use 'bonito_host' for PCI host bridge code

To make it easier to differentiate between the Host Bridge
object and its PCI function #0, rename bonito_pcihost* as
bonito_host*.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230105130710.49264-3-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2023-01-05 11:47:04 +01:00
parent 4dd5cb5d84
commit f9ab9c6e2b
1 changed files with 6 additions and 6 deletions

View File

@ -627,7 +627,7 @@ static const VMStateDescription vmstate_bonito = {
} }
}; };
static void bonito_pcihost_realize(DeviceState *dev, Error **errp) static void bonito_host_realize(DeviceState *dev, Error **errp)
{ {
PCIHostState *phb = PCI_HOST_BRIDGE(dev); PCIHostState *phb = PCI_HOST_BRIDGE(dev);
BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev); BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev);
@ -795,23 +795,23 @@ static const TypeInfo bonito_info = {
}, },
}; };
static void bonito_pcihost_class_init(ObjectClass *klass, void *data) static void bonito_host_class_init(ObjectClass *klass, void *data)
{ {
DeviceClass *dc = DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = bonito_pcihost_realize; dc->realize = bonito_host_realize;
} }
static const TypeInfo bonito_pcihost_info = { static const TypeInfo bonito_host_info = {
.name = TYPE_BONITO_PCI_HOST_BRIDGE, .name = TYPE_BONITO_PCI_HOST_BRIDGE,
.parent = TYPE_PCI_HOST_BRIDGE, .parent = TYPE_PCI_HOST_BRIDGE,
.instance_size = sizeof(BonitoState), .instance_size = sizeof(BonitoState),
.class_init = bonito_pcihost_class_init, .class_init = bonito_host_class_init,
}; };
static void bonito_register_types(void) static void bonito_register_types(void)
{ {
type_register_static(&bonito_pcihost_info); type_register_static(&bonito_host_info);
type_register_static(&bonito_info); type_register_static(&bonito_info);
} }