aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-05 11:47:04 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-13 16:22:57 +0100
commitf9ab9c6e2b6091f1be519852eb2552a96e800a78 (patch)
tree7bee759a731edc41130a6268312c556633fdaad5
parent4dd5cb5d847ed887dd0a00c602b08bade6f6ffa2 (diff)
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>
-rw-r--r--hw/pci-host/bonito.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c
index 450eb29ec0..5c0928ffe6 100644
--- a/hw/pci-host/bonito.c
+++ b/hw/pci-host/bonito.c
@@ -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);
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);
- 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,
.parent = TYPE_PCI_HOST_BRIDGE,
.instance_size = sizeof(BonitoState),
- .class_init = bonito_pcihost_class_init,
+ .class_init = bonito_host_class_init,
};
static void bonito_register_types(void)
{
- type_register_static(&bonito_pcihost_info);
+ type_register_static(&bonito_host_info);
type_register_static(&bonito_info);
}