mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -16,10 +16,9 @@
|
|||
#include "standard-headers/linux/qemu_fw_cfg.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define VMCOREINFO_DEVICE "vmcoreinfo"
|
||||
#define TYPE_VMCOREINFO "vmcoreinfo"
|
||||
typedef struct VMCoreInfoState VMCoreInfoState;
|
||||
DECLARE_INSTANCE_CHECKER(VMCoreInfoState, VMCOREINFO,
|
||||
VMCOREINFO_DEVICE)
|
||||
DECLARE_INSTANCE_CHECKER(VMCoreInfoState, VMCOREINFO, TYPE_VMCOREINFO)
|
||||
|
||||
typedef struct fw_cfg_vmcoreinfo FWCfgVMCoreInfo;
|
||||
|
||||
|
@ -33,7 +32,7 @@ struct VMCoreInfoState {
|
|||
/* returns NULL unless there is exactly one device */
|
||||
static inline VMCoreInfoState *vmcoreinfo_find(void)
|
||||
{
|
||||
Object *o = object_resolve_path_type("", VMCOREINFO_DEVICE, NULL);
|
||||
Object *o = object_resolve_path_type("", TYPE_VMCOREINFO, NULL);
|
||||
|
||||
return o ? VMCOREINFO(o) : NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue