mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
s390x/css: use define for "virtual-css-bridge" literal
Introduce a TYPE_* define (like we already use for a couple of other QOM types) for the name of the virtual CSS bridge QOM type instead of sprinkling the same string literal over several source files. Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
cf2499350a
commit
3f9e485964
3 changed files with 6 additions and 3 deletions
|
@ -130,7 +130,7 @@ VirtualCssBus *virtual_css_bus_init(void)
|
|||
DeviceState *dev;
|
||||
|
||||
/* Create bridge device */
|
||||
dev = qdev_create(NULL, "virtual-css-bridge");
|
||||
dev = qdev_create(NULL, TYPE_VIRTUAL_CSS_BRIDGE);
|
||||
qdev_init_nofail(dev);
|
||||
|
||||
/* Create bus on bridge device */
|
||||
|
@ -1626,7 +1626,7 @@ static void virtual_css_bridge_class_init(ObjectClass *klass, void *data)
|
|||
}
|
||||
|
||||
static const TypeInfo virtual_css_bridge_info = {
|
||||
.name = "virtual-css-bridge",
|
||||
.name = TYPE_VIRTUAL_CSS_BRIDGE,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(SysBusDevice),
|
||||
.class_init = virtual_css_bridge_class_init,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue