mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/misc/vmcoreinfo: Rename VMCOREINFO_DEVICE -> TYPE_VMCOREINFO
Follow the assumed QOM type definition style, prefixing with 'TYPE_', and dropping the '_DEVICE' suffix which doesn't add any value. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20250102132624.53443-1-philmd@linaro.org>
This commit is contained in:
parent
d024d0adf4
commit
b2d4e9f3b8
2 changed files with 6 additions and 7 deletions
|
@ -47,13 +47,13 @@ static void vmcoreinfo_realize(DeviceState *dev, Error **errp)
|
|||
*/
|
||||
if (!vmcoreinfo_find()) {
|
||||
error_setg(errp, "at most one %s device is permitted",
|
||||
VMCOREINFO_DEVICE);
|
||||
TYPE_VMCOREINFO);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fw_cfg || !fw_cfg->dma_enabled) {
|
||||
error_setg(errp, "%s device requires fw_cfg with DMA",
|
||||
VMCOREINFO_DEVICE);
|
||||
TYPE_VMCOREINFO);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ static void vmcoreinfo_device_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
static const TypeInfo vmcoreinfo_types[] = {
|
||||
{
|
||||
.name = VMCOREINFO_DEVICE,
|
||||
.name = TYPE_VMCOREINFO,
|
||||
.parent = TYPE_DEVICE,
|
||||
.instance_size = sizeof(VMCoreInfoState),
|
||||
.class_init = vmcoreinfo_device_class_init,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue